> For the complete documentation index, see [llms.txt](https://developer.trustwallet.com/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.trustwallet.com/developer/mcp/docs-mcp.md).

# Docs MCP

Trust Wallet publishes a [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server powered by GitBook, giving AI coding assistants direct access to the Trust Wallet developer documentation.

**MCP endpoint:**

```
https://developer.trustwallet.com/developer/~gitbook/mcp
```

## What is MCP?

MCP is an open standard that lets AI tools (Claude, Cursor, VS Code Copilot, etc.) connect to external knowledge sources and services. When an MCP server is configured, the AI can query it in real time rather than relying solely on its training data.

## Configuration

### Claude Desktop

Add the following to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "trust-wallet-docs": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://developer.trustwallet.com/developer/~gitbook/mcp"
      ]
    }
  }
}
```

### Claude Code

```
claude mcp add --transport http trust-wallet-docs https://developer.trustwallet.com/developer/~gitbook/mcp
```

### Cursor

Add to `.cursor/mcp.json` in your project (or the global `~/.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "trust-wallet-docs": {
      "url": "https://developer.trustwallet.com/developer/~gitbook/mcp"
    }
  }
}
```

## What the server exposes

Once connected, your AI assistant can search and retrieve content from the full Trust Wallet developer documentation, including:

* Browser Extension and WalletConnect integration guides
* Deep linking reference
* Asset listing requirements and PR process
* Wallet Core API usage, building, and blockchain support
* Barz smart wallet documentation
* Claude Code Skills for Trust Wallet

## Usage example

After configuring the MCP server, you can ask your AI assistant questions like:

> "How do I detect the Trust Wallet browser extension?"

> "What are the asset listing requirements for a new token?"

> "Show me how to sign a transaction with Wallet Core in Swift."

The assistant will query the Trust Wallet docs in real time and return accurate, up-to-date answers.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.trustwallet.com/developer/mcp/docs-mcp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
