About MCP Kit Local Relay
MCP Kit Local Relay is a command-line bridge that lets local stdio-based MCP clients use a remote server configured through the MCP Kit Web App. It forwards one target server's tools and resources to the client.
Key features
- 01Bridge local stdio clients to a remote server
- 02Forward one configured target server
- 03Expose the server's tools and resources locally
- 04Configure the target with a server ID
Use cases
- 01Connect Claude Desktop to an MCP Kit remote server
- 02Use a configured remote server from another stdio MCP client
MCP support
The relay accepts MCP commands over stdio from local clients and proxies them to one configured remote MCP server, making that server's tools and resources available locally.
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 Kit Local Relay
This command-line tool acts as a bridge, allowing local MCP clients that use standard input/output (stdio), like Claude Desktop, to interact with remote MCP Servers you've configured using the MCP Kit Web App.
It proxies requests to one target server at a time, making its tools and resources available locally.
Getting Started (Claude Desktop Example)
Follow these steps to connect Claude Desktop to your remote MCP Server using this relay:
Prerequisites:
- Node.js (v18 or later recommended)
- Node.js
- Git
Steps:
-
Clone the Relay: If you haven't already, clone this repository and navigate into the directory:
git clone https://github.com/trevoruptain/mcp-local-relay cd local-relay -
Install Dependencies:
npm install -
Configure the Relay: Create two configuration files directly inside the
local-relayfolder:-
.envfile: Create this file and add your MCP Kit API Key. You can generate an API key here.# Get your API Key from the MCP Kit Web App (app.mcpkit.ai) -> API Keys MCPKIT_API_KEY=your_api_key_here(Replace
your_api_key_herewith your actual key) -
mcpconfig.jsonfile: Create this file and specify the unique ID of the single remote MCP Server you want this relay to connect to.{ "targetServerId": "your_target_server_id_here" }(Replace
your_target_server_id_herewith the Server ID found on the MCP Kit Web App -> Servers page)
-
-
Build the Relay: Compile the code:
npm run buildThis creates a
distdirectory with the necessary JavaScript files. The main script isdist/index.js. -
Configure Claude Desktop: You need to tell Claude Desktop how to run the relay script.
- Open Claude Desktop settings (Menu -> Settings... -> Developer -> Edit Config).
- Edit the
claude_desktop_config.jsonfile. - Add an entry under
mcpServers. Usenodeas thecommandand provide the full, absolute path to thedist/index.jsfile you just built in theargs.
{ "mcpServers": { "my_mcp_server": { // Choose a name for Claude Desktop to display "command": "node", "args": [ // Replace this with the *absolute* path! "/Users/yourname/path/to/local-relay/dist/index.js" ] } } }- Important: Replace the example path with the actual absolute path on your system.
- For detailed instructions on editing the Claude config, see the Local Relay Documentation. (Note: Update this link if the final URL is different)
-
Restart Claude Desktop: Quit and restart the Claude Desktop application completely.
-
Verify: Click the hammer icon
in Claude Desktop's chat input. You should see the tools from your target server listed under the name you chose (e.g.,
my_mcp_server).
You can now use your remote MCP server's tools directly within Claude Desktop!
Running the Relay Manually
You can also run the relay directly from your terminal (e.g., for testing or use with other stdio clients):
npm start
This command executes node --stack-size=32768 dist/index.js. The relay will start listening for MCP commands on standard input. The --stack-size flag is included to prevent potential "Maximum call stack size exceeded" errors when dealing with large resources (like images).
Troubleshooting
- Claude Desktop Issues:
- Hammer icon missing or tools not listed?
- Double-check the absolute path to
dist/index.jsinclaude_desktop_config.json. - Verify
npm run buildcompleted without errors. - Ensure
.envandmcpconfig.jsonexist in thelocal-relaydirectory and contain the correct API key and Server ID. - Check Claude Desktop's own logs (see official MCP docs for locations).
- Relay Errors:
- Check the
local-relay-debug.logfile created in thelocal-relaydirectory for detailed error messages from the relay itself. - Ensure your
MCP_SERVER_URLin.env(or the defaulthttp://localhost:3002) points to a running instance of themcp-kit-server. - Confirm your
MCPKIT_API_KEYis valid.
- Check the
Development
To run the relay in development mode with automatic restarts on code changes:
npm run dev
This uses nodemon and ts-node.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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.