---
title: "DeepWiki MCP server: ask questions about any public GitHub repo"
canonical_url: https://cookiesforai.app/mcp/deepwiki
last_updated: 2026-10-03T10:04:47+02:00
type: mcp
summary: "The DeepWiki MCP server gives AI agents DeepWiki's generated documentation for public GitHub repositories, plus an ask tool that answers questions about a repo's code, free and without sign-in."
install: "claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp"
related:
  - "https://cookiesforai.app/mcp/context7"
  - "https://cookiesforai.app/mcp/microsoft-learn"
---

# DeepWiki MCP server

The DeepWiki MCP server gives AI agents DeepWiki's generated documentation for public GitHub repositories, plus an ask tool that answers questions about a repo's code, free and without sign-in.

| Fact | Value |
|---|---|
| Publisher | Cognition (makers of Devin) (official) |
| Page updated | 2026-10-03 |
| Hosted endpoint | https://mcp.deepwiki.com/mcp |
| Official MCP Registry | not listed |
| Documented clients | Claude Code, Claude.ai, Cursor, Devin Desktop, OpenAI API |
| Category | Docs and code context |
| Free tier | Free |
| Cost | Free hosted server with no sign-in, for public repositories only; private repositories need a paid Devin account and a separate server. |
| Current prices | https://docs.devin.ai/work-with-devin/deepwiki-mcp |
| Facts checked | 2026-10-02 |

## Connect

Claude Code:

```
claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp
```

Cursor and most other clients:

```
{"mcpServers": {"deepwiki": {"url": "https://mcp.deepwiki.com/mcp"}}}
```

Devin Desktop:

```
{"mcpServers": {"deepwiki": {"serverUrl": "https://mcp.deepwiki.com/mcp"}}}
```

No sign-in is needed. Clients differ on the URL field name: Devin Desktop uses serverUrl and most others use url, and a wrong field makes the client ignore the server silently.

## Ask your coding agent

```text
Connect the DeepWiki MCP server to my coding agent using its documented setup: https://mcp.deepwiki.com/mcp.
```

## What it does

The DeepWiki MCP server connects an AI agent to DeepWiki, a site by Cognition, the company behind the Devin coding agent, that generates wiki-style documentation for public GitHub repositories. With it, an agent can list the documentation topics DeepWiki has written for a repo, read those pages, and ask a free-form question about the repo and get an answer grounded in its code, the same feature DeepWiki's site calls Ask Devin.

DeepWiki's server is useful when an agent has to work with an open-source project it does not know well: how a library structures its plugins, where a function is defined, or how two modules talk to each other. Because the answer comes from DeepWiki's index of the repository rather than from the model's memory, it reflects the code DeepWiki has indexed, not an older training snapshot.

Cognition runs the server at mcp.deepwiki.com with no API key and no account. The /mcp endpoint uses Streamable HTTP and is the recommended one; the older /sse endpoint is being retired. There is no public source repository for the server.

Tools it gives your agent: `read_wiki_structure`, `read_wiki_contents`, `ask_question`

## When to use it

- You want your agent to understand an unfamiliar open-source library before changing code that uses it.
- You need a quick answer to "how does X work in repo Y" without cloning the repo.
- You want a free docs tool that needs no key and works in any MCP client.

## When to pick something else

- Private code: the free server only covers public repositories, and answers come from DeepWiki's index, which can lag behind the latest commits.

## Questions people ask

### Is the DeepWiki MCP server free?

Yes. Cognition's docs call it free and say it needs no authentication; it covers public GitHub repositories only (docs read 2026-10-01).

### Does DeepWiki MCP work with ChatGPT or the OpenAI API?

Cognition's docs say the /mcp endpoint works with OpenAI and link OpenAI's remote MCP guide, which uses DeepWiki as an example for the OpenAI API. It also works in Claude, Cursor and Devin.

### Can DeepWiki MCP read my private repo?

No. For private repositories Cognition points to the Devin MCP server, which needs a Devin account and API key.

## Related

### Other MCP servers for docs and code context

- [Context7](https://cookiesforai.app/mcp/context7): The Context7 MCP server gives AI coding agents current, version-specific documentation and code examples for thousands of libraries, fetched into the prompt so the agent stops guessing at outdated APIs.
- [Microsoft Learn](https://cookiesforai.app/mcp/microsoft-learn): The Microsoft Learn MCP server gives AI agents search and full-page reading over Microsoft's official documentation, plus official code samples for Azure, .NET and other Microsoft products, free and keyless.

