Skip to content

xmcp

The TypeScript MCP framework

45,606
Weekly Downloads
build.protocol_tooling.mcp#mcp#mcp-server#mcp-framework#modelcontextprotocol#model-context-protocol#typescript#ai-agents#http#stdio

Install xmcp in your MCP client

xmcp is a Model Context Protocol server. Add it to your MCP client config once, restart, and the server's tools become available to your AI assistant. The same JSON snippet below works across all four major clients — only the config file path differs.

  1. Locate your client's MCP config file.
    • Cursor: ~/.cursor/mcp.json
    • Claude Desktop (macOS): ~/Library/Application Support/Claude/claude_desktop_config.json
    • Claude Desktop (Windows): %APPDATA%\Claude\claude_desktop_config.json
    • VS Code: Settings → Extensions → MCP
    • Windsurf: Settings → MCP Servers
  2. Add xmcp to the mcpServers map — paste the snippet below into your config file. If you already have other MCP servers, merge the entry into the existing mcpServers object.
  3. Restart your client so it picks up the new server.
  4. Verify — ask the assistant to list available tools; xmcp's tools should appear.
{
  "mcpServers": {
    "xmcp": {
      "command": "npx",
      "args": [
        "-y",
        "xmcp"
      ]
    }
  }
}

Maintain xmcp, or spotted a wrong detail on this page? Report a problem and we will correct it. Corrections are free.

Install xmcp in Cursor

Open ~/.cursor/mcp.json in your editor, paste the snippet above into mcpServers, save, and restart Cursor. xmcp will show up in the assistant's tool list on next launch.

Install xmcp in Claude Desktop (macOS)

Open ~/Library/Application Support/Claude/claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (macOS). xmcp will show up in the assistant's tool list on next launch.

Install xmcp in Claude Desktop (Windows)

Open %APPDATA%\Claude\claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (Windows). xmcp will show up in the assistant's tool list on next launch.

Install xmcp in VS Code

Open Settings → Extensions → MCP in your editor, paste the snippet above into mcpServers, save, and restart VS Code. xmcp will show up in the assistant's tool list on next launch.

npm package: xmcp

Transport

xmcp supports the following MCP transports. Most AI clients use stdio by default for locally-installed servers.

stdio

From the xmcp README

<div align="center"> <a href="https://xmcp.dev"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://assets.basehub.com/bf7c3bb1/303b8a62053c9d86ca3b972b5597ab5c/x.png"> <img alt="XMCP logo" src="https://assets.basehub.com/bf7c3bb1/303b8a62053c9d86ca3b972b5597ab5c/x.png" height="128"> </picture> </a> <h1>xmcp</h1> <a href="https://basement.studio"><img alt="xmcp logo" src="https://img.shields.io/badge/MADE%20BY%20basement.studio-000000.svg?style=for-the-badge&labelColor=000"></a> <a href="https://www.npmjs.com/package/xmcp"><img alt="NPM version" src="https://img.shields.io/npm/v/xmcp.svg?style=for-the-badge&labelColor=000000"></a> <a href="https://github.com/basementstudio/xmcp/blob/main/license.md"><img alt="License" src="https://img.shields…

Other Model Context Protocol servers in the same space as xmcp. Each one adds different capabilities to your AI assistant — pick based on the data sources or workflows you need.

Browse the full MCP server directory or use Stork's one-line install to let your agent pick the right server automatically.