> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devinenterprise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DeepWiki MCP

> How to use the official DeepWiki MCP server

The DeepWiki MCP server provides programmatic access to DeepWiki's public repository documentation and search capabilities (Ask Devin).

## What is MCP?

The [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) is an open standard that enables AI apps to securely connect to MCP-compatible data sources and tools. You can think of MCP like a USB-C port for AI applications - a standardized way to connect AI apps to different services.

## DeepWiki MCP Server

The DeepWiki MCP server is a free, remote, no-authentication-required service that provides access to public repositories.

**Base Server URL:** `https://mcp.deepwiki.com/`

### Available Tools

The DeepWiki MCP server offers three main tools:

1. **`read_wiki_structure`** - Get a list of documentation topics for a GitHub repository
2. **`read_wiki_contents`** - View documentation about a GitHub repository
3. **`ask_question`** - Ask any question about a GitHub repository and get an AI-powered, context-grounded response

### Wire Protocols

The DeepWiki MCP server supports two wire protocols:

#### Streamable HTTP - `/mcp`

* **URL:** `https://mcp.deepwiki.com/mcp`
* Works with Cloudflare, OpenAI, and Claude
* **Recommended for most integrations**

#### SSE (Server-Sent Events) - `/sse`

* **URL:** `https://mcp.deepwiki.com/sse`
* Legacy protocol, being deprecated

<Note>
  The `/mcp` endpoint is recommended as SSE is being deprecated.
</Note>

## Setup Instructions

### For most clients (e.g. Windsurf, Cursor):

```json theme={null}
{
  "mcpServers": {
    "deepwiki": {
      "serverUrl": "https://mcp.deepwiki.com/mcp"
    }
  }
}
```

### For Claude Code:

```bash theme={null}
claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp
```

## Related Resources

* **[Devin's MCP Marketplace](/work-with-devin/mcp)**
* **[Connecting remote MCP servers to Claude](https://support.anthropic.com/en/articles/11175166-about-custom-integrations-using-remote-mcp)**
* **[OpenAI's docs for using the DeepWiki MCP server](https://platform.openai.com/docs/guides/tools-remote-mcp)**
* **[DeepWiki](/work-with-devin/deepwiki)**
* **[Ask Devin](/work-with-devin/ask-devin)**

<Note>
  Want DeepWiki capabilities for private repositories? Sign up for a Devin account at [Devin.ai](https://devin.ai/) and use the [Devin MCP server](/work-with-devin/devin-mcp) with your Devin API key.
</Note>
