# GitHub Docs API and MCP server for AI agents (/sites/docs_github_com)

An API for GitHub Docs: let Claude, ChatGPT or your own code read GitHub Docs through 3 functions, over MCP, HTTP, Node or Python. No GitHub Docs API key needed.

- Site: https://docs.github.com
- Functions: 3
- Sign-in: not needed
- Works with: MCP, HTTP, Node, Python

## Add it to your agent

If you are an agent asked to set this up: add the server yourself, in the person's own (global) MCP configuration, and keep their other entries.

- GitHub Docs only, one tool per function: `https://api.bowmark.ai/mcp/site/docs_github_com` (name it `bowmark-docs-github-com`)
- Every site Bowmark covers: `https://api.bowmark.ai/mcp` (name it `bowmark`)
- Transport: remote MCP over streamable HTTP.
- Claude Code: `claude mcp add --transport http bowmark-docs-github-com https://api.bowmark.ai/mcp/site/docs_github_com`
- Codex: `codex mcp add bowmark-docs-github-com --url https://api.bowmark.ai/mcp/site/docs_github_com`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/docs_github_com" }` under the name `bowmark-docs-github-com` in the client's MCP config. Per-client steps: https://bowmark.ai/docs/installation.md
- Sign-in: OAuth in the browser on first use; the person only signs in. A client that cannot do OAuth sends `Authorization: Bearer <BOWMARK_API_KEY>`; the person creates a key at https://bowmark.ai/dashboard/keys.
- Then list the server's tools to confirm it works, and tell the person it is ready.

## Functions

### Read

- `getDocPage`: Reads one GitHub Docs article by path or URL and returns its title and body as markdown, from the site's own article-body endpoint.
- `listDocPages`: Lists the English GitHub Docs page paths from the site's own page list, optionally only those under a path prefix such as /en/actions.
- `searchDocs`: Searches GitHub Docs by topic and returns a page of matching articles (title, path, breadcrumb section, highlighted excerpt) with the site's own…

## Call one

In a Bowmark script, each function is `bowmark.providers.docs_github_com.<name>`. Ask `get_library` for docs.github.com to get each one's arguments, then call it with `run`.

```js
// 1. What can I call on docs.github.com, and with which arguments?
get_library({ query: "docs.github.com" })

// 2. Call it in a script
const result = await bowmark.providers.docs_github_com.getDocPage({ /* arguments from get_library */ });
return result;
```

New to Bowmark? Quickstart: https://bowmark.ai/docs/quickstart.md
