Deploy a Model Context Protocol server on Brimble so AI clients (Claude, Cursor, IDE agents) can connect to it over the internet, without it running on your laptop. If you want a ready-made MCP server from a marketplace, see Discover MCP servers. This guide covers deploying your own custom MCP code.Documentation Index
Fetch the complete documentation index at: https://paper.brimble.io/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A Git repository containing an MCP server. The MCP SDK is available for TypeScript, Python, and other languages.
- A Brimble account.
- The MCP server should expose itself over HTTP (Streamable HTTP, SSE, or WebSocket transport). MCP servers that only speak stdio don’t work for remote deployment.
https://<project-name>.brimble.app/mcp. The /mcp path is conventional, you can serve on any path your code listens to.
Step 1: Make sure the server speaks HTTP
Verify your MCP server uses an HTTP-based transport and reads its port from thePORT environment variable.
Example, TypeScript MCP server:
/mcp is conventional). Whatever you pick, your MCP clients connect to that path.
Step 2: Create the project
- In the dashboard, click New project.
- Connect your repository.
- Under Service type, choose MCP server.
- Brimble auto-detects the install, build, and start commands. Override under Settings → Build if needed.
- Pick a region close to your primary clients.
Image needed: screenshot of the new-project flow with “MCP server” selected as the service type, and the MCP authentication toggle visible
Step 3: Choose authentication
MCP servers usually shouldn’t be open to the internet. Brimble has a built-in auth toggle for MCP projects.- In Settings → Configuration (or during project creation), find MCP authentication.
- Toggle it on.
- Save.
x-brimble-key header with your account-level API key. To find it, click your avatar in the sidebar to open the profile drawer, scroll to API key, and click the eye icon to reveal the value. The same key authenticates every MCP server in your account, you don’t need a separate key per project.
API keys are available on paid plans only. If you’re on the free plan, MCP authentication can’t be enabled until you upgrade.
If you’d rather implement auth in your application code (per-user tokens, rotation logic, etc.), leave the toggle off and validate auth headers yourself in your handler. Don’t enable both, clients would have to satisfy two layers.
Step 4: Deploy
Click Deploy. The build runs the same as any web service. Once active, your MCP server is live at the project URL.Step 5: Connect from a client
In Claude Desktop, editclaude_desktop_config.json:
headers block.
In Cursor and other clients, add the server URL under the client’s MCP configuration. Pass the x-brimble-key header if auth is on.
Restart the client. The MCP tools, resources, and prompts you registered should appear.
Verification
Logging
The dashboard streams stdout and stderr from the MCP server in real time. Useful when debugging which tools an agent is calling and with what arguments. If your server’s logging is verbose, log selectively, runtime logs accumulate and are visible to anyone with project access.Troubleshooting
Client can’t connect. Confirm the server is listening onprocess.env.PORT, binds to 0.0.0.0, and that the path in the URL matches what your code handles.
401 Unauthorized on every request. MCP authentication is on and the x-brimble-key header is missing or wrong. Open your profile drawer (avatar → API key), reveal the key, and update the client with that value.
Client connects but no tools appear. Tools are registered before server.connect() is called. Make sure registration runs at module-load time, not lazily inside a handler.
502 from the MCP path. Your server isn’t responding within Brimble’s timeout. Check runtime logs for crashes or hangs during request handling.
Works locally but fails when deployed. The local-only stdio transport doesn’t work for remote MCP. Use HTTP/SSE or Streamable HTTP transport for production.
Next steps
- Discover MCP servers, deploy a ready-made MCP server from Brimble’s marketplace.
- Custom domains, give your MCP server a stable URL.
- Networking, how the edge handles HTTP, headers, and WebSockets.