---
title: "HOW to ADD a GitHub MCP to OPENCODE"
url: https://daily.dev/posts/how-to-add-a-github-mcp-to-opencode-iexv5j6uc
source_url: https://www.youtube.com/watch?v=h9mNR1fhN7c
type: video:youtube
source: "That DevOps Guy"
published: 2026-05-31T07:40:50.300Z
updated: 2026-06-18T02:16:01.907Z
tags: ["github", "mcp", "opencode"]
reading_time: 2
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# HOW to ADD a GitHub MCP to OPENCODE

**[That DevOps Guy](https://daily.dev/sources/marcel-dempers)** · 2 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of adding the GitHub MCP (Model Context Protocol) server to OpenCode, an AI coding CLI tool. Covers using the `opencode mcp add` command, configuring the settings.json file with the remote GitHub MCP URL, troubleshooting an OAuth incompatibility error, and authenticating via a GitHub personal access token added as a Bearer authorization header. Once connected, you can query GitHub repositories directly from within OpenCode.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=h9mNR1fhN7c>

---

Tags: [#github](https://daily.dev/tags/github), [#mcp](https://daily.dev/tags/mcp), [#opencode](https://daily.dev/tags/opencode)

[View this post on daily.dev](https://daily.dev/posts/how-to-add-a-github-mcp-to-opencode-iexv5j6uc)
