GitHub Docs API and MCP server for AI agents
Let Claude, ChatGPT or your own agent read GitHub Docs. No GitHub Docs API key needed.
Add to your agent
Paste this into Claude Code, Cursor, Codex or any agent. It adds the server itself.
Read https://bowmark.ai/sites/docs_github_com.md and add Bowmark's GitHub Docs MCP server to my agent.Run this in a terminal, then sign in when the browser opens. Claude Code keeps its own sign-in (a claude.ai sign-in does not carry over), so add only this one server. Adding the Bowmark plugin as well lists every tool twice.
claude mcp add --transport http bowmark-docs-github-com https://api.bowmark.ai/mcp/site/docs_github_comPress the button, or add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"bowmark-docs-github-com": {
"url": "https://api.bowmark.ai/mcp/site/docs_github_com"
}
}
}Press the button, or run this in a terminal.
code --add-mcp '{"name":"bowmark-docs-github-com","type":"http","url":"https://api.bowmark.ai/mcp/site/docs_github_com"}'Run this in a terminal.
codex mcp add bowmark-docs-github-com --url https://api.bowmark.ai/mcp/site/docs_github_comIn Claude, open Plugins → Add → Add custom connector, paste this URL, and pick Sign in now.
https://api.bowmark.ai/mcp/site/docs_github_comIn ChatGPT, open Plugins, press +, choose Add custom MCP server and paste this URL.
https://api.bowmark.ai/mcp/site/docs_github_comAny MCP client that takes a remote (streamable HTTP) server: give it this URL.
https://api.bowmark.ai/mcp/site/docs_github_comFunctions
Open a function to see its parameters and run it with your own API key.
getDocPageReads one GitHub Docs article by path or URL and returns its title and body as markdown, from the site's own article-body endpoint.POST /v1/sites/docs_github_com/getDocPage
Parameters
curl -X POST https://api.bowmark.ai/v1/sites/docs_github_com/getDocPage \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"pathOrUrl":"/en/get-started/start-your-journey/what-is-github"}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.docs_github_com.getDocPage("/en/get-started/start-your-journey/what-is-github");import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.docs_github_com.getDocPage("/en/get-started/start-your-journey/what-is-github"))Responsereturns docs_github_comDocinterface docs_github_comDoc { url: string; path: string; title: string | null; body: string; // article markdown }listDocPagesLists the English GitHub Docs page paths from the site's own page list, optionally only those under a path prefix such as /en/actions.POST /v1/sites/docs_github_com/listDocPages
Parameters
curl -X POST https://api.bowmark.ai/v1/sites/docs_github_com/listDocPages \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"prefix":"/en/get-started"}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.docs_github_com.listDocPages("/en/get-started");import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.docs_github_com.listDocPages("/en/get-started"))Responsereturns docs_github_comPage[]interface docs_github_comPage { path: string; url: string; }searchDocsSearches GitHub Docs by topic and returns a page of matching articles (title, path, breadcrumb section, highlighted excerpt) with the site's own…POST /v1/sites/docs_github_com/searchDocs
Parameters
curl -X POST https://api.bowmark.ai/v1/sites/docs_github_com/searchDocs \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"query":"actions secrets"}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.docs_github_com.searchDocs("actions secrets");import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.docs_github_com.searchDocs("actions secrets"))Responsereturns docs_github_comSearchPageinterface docs_github_comHit { path: string; url: string; title: string; section: string | null; // breadcrumb trail, e.g. 'REST API / Actions' excerpt: string | null; // highlighted excerpt with <mark> removed } interface docs_github_comSearchPage { results: docs_github_comHit[]; total: number | null; page: number; pageCount: number | null; returned: number; warnings: string[]; }