Custom MCP Servers let you write JavaScript code that runs inside Toolbelt's secure execution environment and exposes tools your assistants can call. Think of them as purpose-built integrations: wrap an internal API, combine calls from multiple services, or implement custom business logic — all without leaving Toolbelt.
Once deployed, a Custom MCP Server behaves exactly like any other connected service. Your assistants discover its tools automatically and can call them in the same way they call any other MCP tool.
Whenever you connect a new MCP server or integration, open a chat and ask: "What can this connection do?" The assistant will enumerate all available tool calls, explain use cases, and often suggest how to combine this service with other Toolbelt features like Wrenches or Scheduled Tasks. It's the fastest way to go from "connected" to actually useful.
Custom MCP Servers are for building new integrations from scratch. If you want to connect an existing MCP server running somewhere else, use Toolbelt Bridge instead.
Why build a Custom MCP Server?#
Connect tools and systems that don't have a pre-built Toolbelt integration — internal databases, proprietary APIs, homegrown services.
Merge logic from several integrations into a single tool call. Fetch a GitHub issue, look up the author in your CRM, and return a unified summary — one call, one result.
Encode rules, transformations, or workflows that are specific to your organization — things no off-the-shelf integration would know to do.
Everything runs inside Toolbelt's execution environment. No servers to provision, no deploys to manage outside the platform.
How to create a Custom MCP Server#
Open the MCP Servers section:
Navigate to your assistant's Services settings and click Custom MCP Servers, then New Server.
Name your server:
Give it a short, descriptive name (for example,
crm-lookuporinternal-docs).Write your code:
The editor opens with a starter template. Your code must export a
runfunction and define at least one tool. Use the built-incallToolhelper to call other connected services from inside your custom server.Use AI Edit (optional):
Click AI Edit and describe what you want the server to do in plain English. Toolbelt generates or modifies the code for you, producing a new version you can review before applying.
Save and deploy:
Click Deploy. Toolbelt loads your script into its secure VM runner. The server is now live.
Connect to an assistant:
Navigate to your assistant's Services settings and enable your Custom MCP Server. The assistant will immediately discover the server's tools.
Versioning#
Every time you save a Custom MCP Server script, Toolbelt creates a new immutable version. You can:
- Switch the active version at any time — changes take effect on the next deployment.
- Delete old versions you no longer need (you cannot delete the currently active version).
- Use AI Edit to iteratively refine your server code; each AI edit produces a new version for you to review before applying.
Versioning means you can experiment freely without losing your working baseline.
AI-assisted editing#
Toolbelt provides two AI-assisted workflows for Custom MCP Server code:
- Generate from description — Provide a plain-English description of what you want the server to do. Toolbelt generates a working implementation.
- AI Edit — Open an existing server and describe a change. Toolbelt modifies the code and creates a new version for review.
Both workflows produce reviewable versions before anything is applied. You stay in control.
Security and execution#
Custom MCP Server code runs in Toolbelt's secure VM sandbox:
- Code is isolated per organization — your server cannot access another organization's data or tools.
- Network access is restricted to the services and endpoints you explicitly configure.
- Execution is logged. You can review invocation history and output in the audit log.
Do not hard-code secrets (API keys, passwords) directly in server code. Use Toolbelt's secret management to inject credentials at runtime.
Limits#
| Limit | Value |
|---|---|
| Max execution time per call | 30 seconds |
| Max response size | 1 MB |
| Max versions per server | 50 |
If your use case requires longer execution or larger payloads, consider breaking the work into multiple tool calls or using a Wrench to post-process the output.
