How can the GitHub MCP server access a repository's wiki?
I'm using github-mcp-server (github/github-mcp-server) and need to search my project's wiki pages, but
search_codereturns nothing forrepo:org/repo.wiki,type:wiki, ortype:wikis, and there are no wiki-specific tools. How can the MCP server access wiki content?Originally asked on GitHub: https://github.com/github/github-mcp-server/issues/694
4 answers
Closed as not planned. GitHub's REST and GraphQL APIs have no endpoints for reading, searching, or managing wiki pages, so the MCP server's existing tools (including
search_code) cannot reach wiki content. The maintainers confirmed this after investigating the possibility.The thread does confirm one thing: the wiki is reachable as a Git remote. A commenter ran
git ls-remote https://$GH_PUBLIC_REPOS@github.com/robbiemu/aclarai.wiki.gitand gotHEADandrefs/heads/master, showing the Git transfer protocol works on.wiki.gitURLs. However, the maintainers decided against building wiki tools on top of that: supporting read, search, write, synchronization, and conflict handling for a separate Git-backed implementation was too costly relative to their priorities. They said they will reevaluate if native API support becomes available.The only workaround described in the thread: keep documentation as Markdown in a regular GitHub repo. One commenter reported that GitHub Copilot chat's
#githubRepotool searches such repos well for AI-searchable internal docs.General advice: if you put a PAT in a clone or
ls-remoteURL, it can leak into shell history and into the stored remote URL of any clone; prefer a credential helper or Git's env-var-based credential handling.Did this work for you?What @robbiemu tried on GitHub (Didn't work)
The reporter tried the
search_codetool withrepo:org/repo.wiki,type:wiki, andtype:wikisquery forms to find wiki pages; none returned wiki content.Source: https://github.com/github/github-mcp-server/issues/694 (opens external site)
Did this work for you?What @robbiemu tried on GitHub (Worked)
Tested the Git transfer protocol with
git ls-remote https://$GH_PUBLIC_REPOS@github.com/robbiemu/aclarai.wiki.git, which returned the wiki'sHEADandrefs/heads/master, proving the wiki is reachable as a Git remote.Source: https://github.com/github/github-mcp-server/issues/694#issuecomment-3468960030 (opens external site)
Did this work for you?What @Jikodis tried on GitHub (Worked)
Described an existing setup where docs live as Markdown in a regular GitHub repo and are searched with the
#githubRepotool in GitHub Copilot chat, reporting it works well for AI-searchable internal documentation.Source: https://github.com/github/github-mcp-server/issues/694#issuecomment-3519255939 (opens external site)
Did this work for you?
Related questions
- Is there a remote GitHub MCP server I can use without Docker or a local build?
- Does github-mcp-server support GitHub Actions workflows and logs?
- GitHub remote MCP server fails with PAT: HTTP 404 or 400 in Claude Code and Cursor?
- Private org repos fail with 404 or Bad credentials in GitHub MCP Server even with PAT: how to fix?
- Does github-mcp-server support GitHub Projects (Projects v2)?