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.

Functions

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"}'
    Sign in to run
    Responsereturns docs_github_comDoc
    interface 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"}'
    Sign in to run
    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"}'
    Sign in to run
    Responsereturns docs_github_comSearchPage
    interface 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[];
    }