AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified CC0-1.0 Self-run

Xmtp Docs Mcp

mcp-xmtp-xmtp-docs-mcp · by xmtp

Docs-only MCP server that exposes XMTP docs as searchable tools for MCP-compatible clients

No reviews yet
0 installs
18 views
0.0% view→install

Install

$ agentstack add mcp-xmtp-xmtp-docs-mcp

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-xmtp-xmtp-docs-mcp)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Xmtp Docs Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

XMTP docs MCP

A lightweight, docs-only MCP server that exposes XMTP documentation as searchable tools for MCP-compatible clients like Claude Code.

This project is intended as an internal beta. It provides structured, queryable access to XMTP docs for LLM-assisted development workflows.

Quickstart for Claude Code

  1. Add the MCP server to Claude Code using npx:

``bash claude mcp add --transport stdio xmtp-docs -- npx -y github:xmtp/xmtp-docs-mcp ``

  1. Start Claude Code:

``bash claude ``

  1. Inside Claude Code, run:

``bash /mcp ``

You should see the xmtp-docs server and its [tool endpoints](#tool-endpoints) listed.

Quickstart for Cursor (per-project)

  1. In the root of your project repo where you want to use the XMTP docs MCP (e.g., my-chat-app repo), create a file at:

``bash mkdir -p .cursor touch .cursor/mcp.json ``

  1. Add this configuration to .cursor/mcp.json:
{
  "mcpServers": {
    "xmtp-docs": {
      "command": "npx",
      "args": ["-y", "github:xmtp/xmtp-docs-mcp"]
    }
  }
}

> [!TIP] > If Cursor doesn’t recognize mcpServers in your version, try mcp_servers as the top-level key instead.

  1. Restart Cursor.
  1. Select a Claude-based agent (such as Sonnet) for reliable MCP-backed answers. Some agents may not invoke MCP tools.

Quickstart for VS Code (per-workspace)

  1. Install the GitHub Copilot extension (if not already installed).
  1. Open your VS Code settings and add the MCP server configuration:
  • Press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux)
  • Search for "MCP: Add Server..."
  • Choose "Command (stdio)"
  • Enter the command: npx -y github:xmtp/xmtp-docs-mcp

Alternatively, add a .vscode/mcp.json file containing:

``json { "servers": { "xmtp-docs": { "type": "stdio", "command": "npx", "args": ["-y", "github:xmtp/xmtp-docs-mcp"] } }, "inputs": [] } ``

Docs source

The server loads the full XMTP LLM docs bundle covering how to build chat apps and agents: https://docs.xmtp.org/llms/llms-full.txt

Fork this for your own docs

This server is designed as a template for technical documentation teams that want to provide MCP servers for their own documentation. If you maintain technical docs and want to make them queryable by LLM clients, you can fork this repo and point it at your own documentation.

What you need

A docs bundle in plain text or markdown format (like llms-full.txt).

  • Should be structured with markdown headings (#, ##, ###) for best chunking
  • Can be hosted on GitHub, your docs site, or served locally
  • See XMTP's generatellms_full.py for an example script that generates a docs bundle from a docs site

Fork setup

  1. Fork this repository to your-org/your-docs-mcp
  1. Update package.json:

``json { "name": "your-docs-mcp", "description": "Docs-only MCP server for YourProduct documentation" } ``

  1. Update the URL in src/index.ts:

``typescript const DOC_URL = "https://your-domain.com/path/to/your-docs.txt"; ``

  1. Update src/index.ts to customize the server name:

``typescript const server = new McpServer({ name: "your-docs-mcp", version: "1.0.0", }); ``

  1. Build:

``bash npm install npm run build ``

  1. Publish to your repo

Project structure

| File/Folder | Purpose | | --------------- | ----------------------------------------------------------------------------------- | | src/index.ts | The brain of the server: Loads docs, chunks them, defines MCP tools, handles search | | src/cli.ts | Entry point: Eight lines that start the server | | dist/ | Compiled JavaScript output (generated by npm run build) | | package.json | Dependencies, scripts, and package metadata | | tsconfig.json | TypeScript compiler settings | | README.md | This documentation | | LICENSE | CC0 1.0 Universal |

How it's built

This MCP server is a lightweight, single-file implementation built on the official Model Context Protocol SDK. Here's how the key components work together.

Core components

MCP server framework
  • Built on @modelcontextprotocol/sdk — the official MCP SDK from Anthropic
  • Uses StdioServerTransport for communication via standard input/output, making it compatible with any MCP client
  • Registered as a CLI tool via bin in package.json, enabling npx execution
Schema validation
  • Uses Zod for runtime validation of tool parameters
  • Type-safe schemas ensure correct inputs for both search_xmtp_docs and get_xmtp_doc_chunk tools
Document loading
  • Fetches XMTP docs from DOC_URL at startup and keeps them in memory
Document chunking
  • Splits documentation text into searchable chunks based on markdown headings (#, ##, ###, etc.)
  • Each chunk gets a unique numeric ID and retains its section title
  • Simple, deterministic algorithm that preserves document structure
Search algorithm
  • Keyword-based scoring that counts query occurrences in chunk title + text
  • Supports both full query phrases and individual tokens
  • Returns top N results sorted by relevance score

Tool endpoints

The server exposes two MCP tools that LLM clients can invoke:

  1. search_xmtp_docs — Returns ranked search results with previews
  2. get_xmtp_doc_chunk — Fetches full content of a specific chunk by ID

Both tools use Zod schemas for parameter validation and return JSON-formatted responses.

Local development

This is only needed if you’re working on the MCP server itself. End users should use the [Quickstart](#quickstart-for-claude-code) setup instead.

npm install
npm run build
npm run dev

The server will start and wait for stdio input (this is expected).

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.