DeepWiki is Cognition's service that generates wiki-style documentation for GitHub repositories, and its MCP server exposes that index to an agent over three tools: read_wiki_structure, read_wiki_contents and ask_question. The endpoint is https://mcp.deepwiki.com/mcp over streamable HTTP, with a legacy https://mcp.deepwiki.com/sse still served. It is free, remote, and requires no authentication for public repositories. Add it to Claude Code with claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp. Private repositories need a Devin account with GitHub connected.
- Endpoint:
https://mcp.deepwiki.com/mcp. Free, remote, no auth for public repos. - Three tools only:
read_wiki_structure,read_wiki_contents,ask_question. - A small tool surface is the point. It costs almost nothing in standing context.
- Private repos need a Devin account with GitHub connected.
- In Claude Code JSON, add
"type": "http". The vendor snippet omits it and Claude Code skips the entry. - It answers from a generated wiki, not from HEAD. Version drift is the failure mode.
What DeepWiki and its MCP server actually are
DeepWiki, from Cognition, the company behind Devin, indexes public GitHub repositories and generates structured wiki-style documentation for them: an architecture overview, per-subsystem pages, diagrams, and a question-answering layer over the whole thing. The web version has a well-known shortcut, which is to take any GitHub URL and swap the domain.
https://github.com/openai/codex
https://deepwiki.com/openai/codex
The MCP server, announced by Cognition on 22 May 2025, is that same index exposed to an agent. Instead of you reading a generated wiki, your coding agent queries it mid-task: what does this library call its plugin interface, where does authentication live in this codebase, does this framework support the thing I am about to assume it supports.
The three tools it exposes
| Tool | What it does | Use it for |
|---|---|---|
read_wiki_structure | Lists the documentation topics for a repository | Orientation. What does this project even contain |
read_wiki_contents | Returns the documentation itself | Reading a subsystem before touching it |
ask_question | Answers a natural-language question about a repository | The one you will use ninety percent of the time |
The right mental model for ask_question is a knowledgeable contributor rather than a search index. Asking "how do I configure retries" gets you an explanation with references. Asking "show me line 400 of client.go" is a question for the repository, not for DeepWiki, and you should clone it instead.
Use deepwiki to explain how tokio schedules tasks across worker threads.
Ask deepwiki whether pydantic v2 still supports the __get_validators__ hook,
and what replaced it if not.
Before you write the adapter: read the deepwiki structure for
openai/codex and tell me where MCP servers are registered.
Setting it up in Claude Code
claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp
# confirm it connected
claude mcp list
Use --scope user, spelled -s user above, so it follows you between repositories. This is a personal research tool rather than a team dependency, and there is no credential to share, so committing it to .mcp.json buys nothing.
{
"mcpServers": {
"deepwiki": {
"type": "http",
"url": "https://mcp.deepwiki.com/mcp"
}
}
}
Setting it up in Cursor and Codex
Cursor
{
"mcpServers": {
"deepwiki": {
"url": "https://mcp.deepwiki.com/mcp",
"type": "http"
}
}
}
Codex
codex mcp add deepwiki --url https://mcp.deepwiki.com/mcp
codex mcp list
[mcp_servers.deepwiki]
url = "https://mcp.deepwiki.com/mcp"
Free, paid, and private repositories
| Public repositories | Private repositories | |
|---|---|---|
| Cost | Free | Requires a Devin account |
| Authentication | None | GitHub connected to Devin |
| Endpoint | The same /mcp URL | The same URL, authenticated |
| Indexing | Already done for popular repos | Runs against your connected repositories |
The free public tier is unusually generous for a hosted service and there is no key to rotate, which is most of why this server is easy to recommend. Private repository support is the commercial hook: it needs a Devin account with GitHub connected, and at that point you are evaluating Devin rather than evaluating an MCP server.
Rough edges worth knowing before you rely on it
Nothing here is a dealbreaker, and all of it is easier to recognise than to debug from scratch.
| Symptom | What is happening | What to do |
|---|---|---|
| Thin or evasive answer about a small repo | It has not been indexed yet | Open deepwiki.com/<owner>/<repo> in a browser first, then retry |
| Answer describes an older API | The wiki was generated at index time, not read from HEAD | Verify anything version-sensitive against the source |
| The agent never calls it | Nothing in the prompt named it | Say "use deepwiki to..." until the habit forms |
Server missing from claude mcp list | JSON entry has url and no type | Add "type": "http" |
| Nothing works in Codex | The /sse URL was used | Use the /mcp endpoint. Codex has no SSE transport |
| A private repo returns nothing | The free endpoint is public repositories only | Connect GitHub to a Devin account, or self-host an index |
The vendor publishes no rate limits for the free endpoint, which is a statement about the documentation rather than a promise. Treat it the way you would treat any free unauthenticated public service: fine for interactive research, not something to put in the hot path of a build. A repository that matters to you every day is also a repository worth cloning, where the source is authoritative and the read costs nothing.
When DeepWiki is the right tool, and when it is not
The honest limitation is structural rather than a bug. DeepWiki answers from a generated wiki built at index time, not from the repository at HEAD. For architecture, intent, and how subsystems relate, that is fine and often better than the source, because someone has already done the summarising. For "what is the current signature of this function", it is exactly the wrong shape of answer, delivered confidently.
| Question | Best tool | Why |
|---|---|---|
| How is this project structured? | DeepWiki | The generated wiki is exactly this |
| Why does this library work this way? | DeepWiki | Intent and design, summarised |
| What is the current API of version 4.2? | Context7 | Version-pinned docs from the lockfile |
| What does this exact function do today? | Clone and read it | Only the source is current |
| Has this bug been reported? | The GitHub MCP server | Issues and pull requests, live |
| A private repo, no Devin account | Clone and read it | Or self-host an open index |
Questions people ask
What is the DeepWiki MCP server?
A free remote MCP server from Cognition that lets an AI agent query DeepWiki, the service that generates wiki-style documentation for GitHub repositories. It exposes three tools: read_wiki_structure, read_wiki_contents and ask_question. It was announced on 22 May 2025.
What is the DeepWiki MCP URL?
https://mcp.deepwiki.com/mcp for streamable HTTP, which is the recommended transport. A legacy https://mcp.deepwiki.com/sse endpoint is still served, but SSE is the deprecated MCP transport and Codex cannot use it at all.
Is DeepWiki MCP free?
Yes for public repositories, with no login and no authentication. Private repositories need a Devin account with GitHub connected, which is the commercial side of the product.
How do I add DeepWiki to Claude Code?
Run claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp, then claude mcp list to confirm it connected. If you configure it as JSON instead, include "type": "http", because Claude Code skips a url entry that has no type.
Why is my DeepWiki MCP config not working in Claude Code?
Almost always the missing type field. The published snippet gives only a url, which Claude Code reads as a malformed stdio server and skips with the error MCP server "deepwiki" has a "url" but no "type". Add "type": "http".
Can DeepWiki read my private repositories?
Only with a Devin account that has GitHub connected. The free no-auth endpoint covers public repositories. If neither works for you, an open-source self-hosted index keeps both the code and the queries inside your own environment.
Is DeepWiki better than Context7?
They answer different questions. Context7 supplies version-pinned API documentation for the library in your lockfile. DeepWiki explains how a codebase is structured and why. Neither replaces reading the source when you need the exact current signature.
Does DeepWiki work with Cursor and Codex?
Yes, both. Cursor takes {"url": "https://mcp.deepwiki.com/mcp", "type": "http"} in mcp.json. Codex takes codex mcp add deepwiki --url https://mcp.deepwiki.com/mcp, or a [mcp_servers.deepwiki] block with a url key in config.toml.
Sources
Every figure above was read from these pages on August 2026. Vendors reprice without notice; if you find a stale number, tell us.
- Devin documentation: DeepWiki MCP endpoints, tools, and the free no-auth tier, read 19 August 2026
- Cognition: the DeepWiki MCP server the 22 May 2025 announcement
- DeepWiki
- Claude Code MCP documentation
- Cursor documentation: MCP
- Codex documentation: MCP