DeepWiki MCP: ask any public GitHub repo a question

Most MCP servers cost you a credential and a context budget. DeepWiki costs neither: it is a free public endpoint that lets an agent ask questions about any indexed GitHub repository. That makes the interesting question not how to add it, but when its answers are better than reading the code.

By the Continuum team. We build a workbench that runs Claude Code, Codex, and their peers, so the model rates quoted here are the ones our own cost analytics ship with.

The short version

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.

What you need to know
  • 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.

The URL trick, for when you just want to read it yourself.
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

The DeepWiki MCP tool surface, from the Devin documentation, read 19 August 2026.
ToolWhat it doesUse it for
read_wiki_structureLists the documentation topics for a repositoryOrientation. What does this project even contain
read_wiki_contentsReturns the documentation itselfReading a subsystem before touching it
ask_questionAnswers a natural-language question about a repositoryThe 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.

Prompts that actually route to it well.
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

One command. No credential to fetch first.
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.

The JSON form, with the field the vendor snippet leaves out.
{
  "mcpServers": {
    "deepwiki": {
      "type": "http",
      "url": "https://mcp.deepwiki.com/mcp"
    }
  }
}

Setting it up in Cursor and Codex

Cursor

~/.cursor/mcp.json for every project, or .cursor/mcp.json for one.
{
  "mcpServers": {
    "deepwiki": {
      "url": "https://mcp.deepwiki.com/mcp",
      "type": "http"
    }
  }
}

Codex

Codex takes a URL for streamable HTTP servers. Verified against codex-cli 0.144.1.
codex mcp add deepwiki --url https://mcp.deepwiki.com/mcp

codex mcp list
Or by hand in ~/.codex/config.toml.
[mcp_servers.deepwiki]
url = "https://mcp.deepwiki.com/mcp"

Free, paid, and private repositories

Public repositoriesPrivate repositories
CostFreeRequires a Devin account
AuthenticationNoneGitHub connected to Devin
EndpointThe same /mcp URLThe same URL, authenticated
IndexingAlready done for popular reposRuns 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.

SymptomWhat is happeningWhat to do
Thin or evasive answer about a small repoIt has not been indexed yetOpen deepwiki.com/<owner>/<repo> in a browser first, then retry
Answer describes an older APIThe wiki was generated at index time, not read from HEADVerify anything version-sensitive against the source
The agent never calls itNothing in the prompt named itSay "use deepwiki to..." until the habit forms
Server missing from claude mcp listJSON entry has url and no typeAdd "type": "http"
Nothing works in CodexThe /sse URL was usedUse the /mcp endpoint. Codex has no SSE transport
A private repo returns nothingThe free endpoint is public repositories onlyConnect 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.

Picking between the three ways an agent can learn about someone else's code.
QuestionBest toolWhy
How is this project structured?DeepWikiThe generated wiki is exactly this
Why does this library work this way?DeepWikiIntent and design, summarised
What is the current API of version 4.2?Context7Version-pinned docs from the lockfile
What does this exact function do today?Clone and read itOnly the source is current
Has this bug been reported?The GitHub MCP serverIssues and pull requests, live
A private repo, no Devin accountClone and read itOr 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.

  1. Devin documentation: DeepWiki MCP endpoints, tools, and the free no-auth tier, read 19 August 2026
  2. Cognition: the DeepWiki MCP server the 22 May 2025 announcement
  3. DeepWiki
  4. Claude Code MCP documentation
  5. Cursor documentation: MCP
  6. Codex documentation: MCP
Try it

Three tools,
not thirty.

Continuum shows the token split per session, so you can see what a server list costs before it costs you a plan tier.

free app · your subscriptions · local-first