mcpd-proxy
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcpd-proxylist all available tools"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcpd-proxy
An MCP (Model Context Protocol) server that acts as a proxy between IDEs and the mcpd daemon, exposing all mcpd-managed MCP servers through a unified interface.
Overview
┌─────────────┐ STDIO/JSON-RPC ┌──────────────┐ HTTP/REST ┌──────────┐
│ IDE/Editor │ ◄─────────────────► │ mcpd-proxy │ ◄───────────────►│ mcpd │
│ (VS Code, │ MCP Protocol │ MCP Server │ Uses mcpd SDK │ daemon │
│ Cursor) │ │ │ │ │
└─────────────┘ └──────────────┘ └──────────┘mcpd-proxy aggregates tools, resources, and prompts from multiple MCP servers managed by mcpd into a single MCP interface, making it easy for IDEs to access all capabilities without managing individual server connections.
Related MCP server: Multi MCP
Features
Unified Interface: Single MCP server exposing all
mcpd-managed capabilitiesTool Aggregation: Tools from all servers with
server__toolnaming conventionResource Aggregation: Resources from all servers with
server__resourcenaming andmcpd://URIsPrompt Aggregation: Prompts from all servers with
server__promptnaming conventionEfficient Caching: Leverages SDK caching for health checks and tool schemas
Zero Configuration: Works out of the box with sensible defaults
TypeScript: Built with
TypeScriptfor type safety
Prerequisites
Node.js22.10.0 or higher (latest 22.x recommended)npm11.19.1 for development (the version pinned bypackageManagerinpackage.json, see Development Workflow)mcpddaemon running and accessiblemcpdSDK (automatically installed as a dependency)
Installation
From npm (Recommended)
# Global installation
npm install -g @mozilla-ai/mcpd-proxy
# Or use directly with npx
npx @mozilla-ai/mcpd-proxyFrom Source
# Clone the repository
git clone https://github.com/mozilla-ai/mcpd-proxy.git
cd mcpd-proxy
# Install dependencies
npm install
# Build the project
npm run buildConfiguration
mcpd-proxy is configured via environment variables:
Variable | Description | Default |
|
|
|
| Optional API key for | (not set) |
Usage
Running Directly
# Using npm package (recommended)
npx @mozilla-ai/mcpd-proxy
# With custom mcpd address
MCPD_ADDR=http://localhost:8090 npx @mozilla-ai/mcpd-proxy
# With API key
MCPD_ADDR=http://localhost:8090 MCPD_API_KEY=your-key npx @mozilla-ai/mcpd-proxy
# From source build
node dist/index.mjs
# From source with custom address
MCPD_ADDR=http://localhost:8090 node dist/index.mjsVS Code Setup
Add to your VS Code MCP settings file (location varies by platform):
{
"servers": {
"mcpd": {
"type": "stdio",
"command": "npx",
"args": ["@mozilla-ai/mcpd-proxy"],
"env": {
"MCPD_ADDR": "http://localhost:8090"
}
}
}
}Or if building from source:
{
"servers": {
"mcpd": {
"type": "stdio",
"command": "node",
"args": ["<path-to-mcpd-proxy>/dist/index.mjs"],
"env": {
"MCPD_ADDR": "http://localhost:8090"
}
}
}
}Replace <path-to-mcpd-proxy> with the absolute path to your installation.
Reload VS Code: Cmd+Shift+P → "Developer: Reload Window"
Verify the connection in the MCP panel to see available tools.
Cursor Setup
Create or edit .cursor/mcp.json in your project directory, or ~/.cursor/mcp.json for global configuration:
{
"mcpServers": {
"mcpd": {
"command": "npx",
"args": ["@mozilla-ai/mcpd-proxy"],
"env": {
"MCPD_ADDR": "http://localhost:8090"
}
}
}
}Or if building from source:
{
"mcpServers": {
"mcpd": {
"command": "node",
"args": ["<path-to-mcpd-proxy>/dist/index.mjs"],
"env": {
"MCPD_ADDR": "http://localhost:8090"
}
}
}
}Replace <path-to-mcpd-proxy> with the absolute path to your installation, or use ${workspaceFolder} for relative paths.
Reload Cursor to apply the configuration.
See examples/ folder for configuration examples.
Development
Project Structure
mcpd-proxy/
├── src/
│ ├── index.ts # CLI entry point
│ ├── server.ts # MCP server implementation
│ ├── config.ts # Configuration loader
│ └── apiPaths.ts # API endpoint constants
├── tests/
│ └── unit/ # Unit test files
│ ├── aggregation.test.ts
│ ├── apiPaths.test.ts
│ ├── config.test.ts
│ ├── parsers.test.ts
│ └── server.test.ts
├── .github/
│ └── workflows/ # GitHub Actions workflows
│ ├── tests.yaml
│ ├── lint.yaml
│ └── release.yaml
├── examples/
│ ├── vscode-config.json # VS Code configuration example
│ └── cursor-config.json # Cursor configuration example
├── dist/ # Build output (gitignored)
├── package.json # npm package configuration
├── package-lock.json # npm dependency lock file
├── tsconfig.json # TypeScript compiler configuration
├── tsconfig.test.json # TypeScript test configuration
├── vitest.config.ts # Vitest test configuration
├── vite.config.mts # Vite build configuration
├── eslint.config.mts # ESLint configuration
├── .prettierignore # Prettier ignore patterns
├── .gitignore # Git ignore patterns
└── README.md # This fileDevelopment Workflow
Use the exact npm version pinned by packageManager in package.json.
Different npm versions write package-lock.json differently, and CI regenerates the lock file with the pinned version and fails if the result differs.
The npm bundled with a Node.js release is often older than the pin, so check before installing:
# Option A: let corepack pick the pinned version (Node.js 22 and 24 ship corepack)
corepack enable npm
# Option B: install the pinned version globally
npm install -g npm@11.19.1
# Either way, this must print 11.19.1
npm --version# Install dependencies
npm install
# Build once
npm run build
# Watch mode (auto-rebuild on changes)
npm run dev
# Run tests
npm test
# Run tests in watch mode
npm run test:watch
# Type check without building
npm run typecheck
# Lint code
npm run lint
# Format code
npm run formatManual Testing
Test the MCP protocol directly using JSON-RPC over stdio:
# Test initialize
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}' | node dist/index.mjs
# Test list tools
echo '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' | node dist/index.mjsReleasing
The published version is derived from the git tag, so there is no version-bump commit. The version field in package.json is a 0.0.0 placeholder; CI stamps the real version from the release tag before building and publishing.
To cut a release, create a GitHub release (and tag) named vX.Y.Z. The Publish to npm workflow then sets the package version to X.Y.Z, builds, and publishes.
Do not run npm publish by hand — a local build carries the 0.0.0 placeholder. Publishing goes through the tag/release flow only.
Naming Conventions
Tools
Tools are exposed with the format: {server}__{tool_name}
Examples:
time__get_current_time-get_current_timetool fromtimeservergithub__create_issue-create_issuetool fromgithubserverfetch__get_url-get_urltool fromfetchserver
This naming convention prevents tool name collisions between servers and makes it clear which server provides each tool.
Resources
Resources use a custom URI scheme: mcpd://{server}/{resource_uri}
Examples:
mcpd://filesystem/documents/file.txtmcpd://database/users/123
Prompts
Prompts follow the same naming convention as tools: {server}__{prompt_name}
Architecture
Singleton McpdClient
mcpd-proxy creates a single instance of McpdClient at startup and reuses it for all requests. This is essential for:
Caching: Health check cache (10s
TTL) and tool schema cache (60sTTL)Performance: Avoids creating new
HTTPconnections for each requestEfficiency: Reduces load on
mcpddaemon
const mcpdClient = new McpdClient({
apiEndpoint: config.mcpdAddr,
apiKey: config.mcpdApiKey,
healthCacheTtl: 10,
});MCP Protocol Handlers
The proxy implements the following MCP protocol handlers:
initialize- Handshake with IDE, declares capabilitiestools/list- Aggregates tools from allmcpdserverstools/call- Parses tool name and forwards tomcpdresources/list- Aggregates resources from all serversresources/read- Forwards resource read requests tomcpdprompts/list- Aggregates prompts from all serversprompts/get- Forwards prompt requests tomcpdping- Health check endpoint
Troubleshooting
Cannot connect to mcpd daemon
Cause: mcpd daemon is not running or not accessible
Solution:
Verify
mcpdis running:curl http://localhost:8090/api/v1/serversCheck
MCPD_ADDRenvironment variable is correctEnsure no firewall blocking the connection
Server not found
Cause: Requested server doesn't exist in mcpd
Solution:
List available servers:
curl http://localhost:8090/api/v1/serversCheck server is configured in
mcpdVerify server is healthy:
curl http://localhost:8090/api/v1/health/servers/<server-name>
VS Code not showing tools
Cause: VS Code may not have recognized the MCP server
Solution:
Check VS Code developer console for errors (Help → Toggle Developer Tools)
Verify the path to
dist/index.mjsis correct and absolute (if building from source)Reload VS Code:
Cmd+Shift+P→ "Developer: Reload Window"Check
mcpddaemon is running and accessible
Tools listed but execution fails
Cause: Server may be unhealthy or tool doesn't exist
Solution:
Check server health via
mcpdAPIVerify tool exists on the server
Check
mcpdlogs for errors
Future Enhancements
Dynamic tool list updates (
notifications/tools/list_changed)Server filtering via
MCPD_SERVERSenvironment variableImproved unhealthy server handling
Related Projects
mcpd- The MCP daemon this proxy connects tomcpd-sdk-javascript-TypeScriptSDK formcpdmcpd-sdk-python- Python SDK formcpd
License
Apache-2.0
Contributing
See the main mcpd repository for contribution guidelines.
This server cannot be deployed
Maintenance
Related MCP Connectors
The MCP server that finds MCP servers. Aggregates Official Registry, Glama, and Smithery.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
Publish and discover MCP servers via the official MCP Registry. Powered by HAPI MCP server.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProxy that aggregates multiple MCP servers and presents them as a unified interface, allowing clients to access resources from multiple servers transparently.4-
- AlicenseBqualityCmaintenanceA flexible proxy server that aggregates multiple backend MCP servers into a single interface using STDIO or SSE transports. It supports dynamic server management via an HTTP API and utilizes namespacing to prevent tool conflicts across connected services.31MIT

mcp-server-metatoolofficial
AlicenseNot gradedqualityCmaintenanceA proxy MCP server that aggregates tools from multiple MCP servers and forwards calls to the appropriate server, used with the Metatool App for GUI tool management.5Apache 2.0- AlicenseNot gradedqualityCmaintenanceA universal MCP server that acts as a unified gateway for dynamically connecting and managing multiple MCP servers via a single HTTP endpoint.7 npm6MIT