About MCP server proxy
MCP server proxy is a TypeScript utility for developers building worker-based MCP servers. It forwards messages to an existing MCP server through `proxyMessage`.
Key features
- 01Forward messages to an existing MCP server
Use cases
- 01Pass worker messages to an existing MCP server
MCP support
It proxies messages to an existing MCP server, extending its use in a worker.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP server proxy
Use proxyMessage to pass a message to an existing MCP server:
import { proxyMessage } from '@contextdepot/mcp-proxy/dist/index.js'
// create server and configure handlers
const server = new Server(..);
..
export default class extends WorkerEntrypoint {
// send message to the server
async message(requestMessage): Promise<void> {
return proxyMessage(server, requestMessage)
}
};
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.