Needs connector 0.1.35 or newer. Only MCP servers that speak streamable HTTP are supported for now. Plain web services (
"kind": "http") are not available yet.Add a service
1
List the service in config.json
Services go in
config.json, under services. The key is the name Timbal uses for that service; the address and credential stay on the server.On Windows and macOS the installer already created this file: add
services and leave the other keys alone. On Linux config.json does not exist yet: create it with only the map. If doctor doesn’t show the services you put there, add TIMBAL_CONNECT_CONFIG=/etc/timbal-connect/config.json to connector.env, then restart.2
Restart and run doctor
- Windows
- Linux
- macOS
doctor has no caller to send.3
Connect a client
Point Cursor, another MCP client or a Timbal agent at the service’s URL: see Connect a client.
Fields
Keep the secret out of the file
${NAME} in url and in auth values is replaced with the environment variable of that name when the service starts. A variable that isn’t set stops the connector from starting, with its name in the log, so it can never send an empty credential.
- Linux: add the variable to
/etc/timbal-connect/connector.env(CRM_TOKEN=...) and restart. Thedoctorcommand above loads that file too. - Windows and macOS: you can write the value directly in
config.jsoninstead. Protect the file like a credential.
Rules
- The name (
crmabove) is lowercase letters, digits and-, up to 63 characters. It is the{service}in the URL clients use. - The connector reaches the service directly, not through its proxy.
- Services are set on the server only. A configuration pushed from Timbal doesn’t carry them.
- Connectors older than 0.1.35 refuse to start with a
serviceskey. Don’t add it on a server that may go back to an older version. - An invalid entry stops the connector from starting, and the log names the service and the field.
gateway:v1 capability, and its log shows gateway: serving on-prem services over the tunnel with the service names.
Connect a client
Each service has its own MCP URL:- Cursor
- Timbal agent
Add this to
~/.cursor/mcp.json, or to .cursor/mcp.json in a project:- Who can call: a person with the ConnectorsManage role in the organization. Service accounts can’t call it yet.
- What the service receives: the MCP requests with the credential from its
authentry. The caller’s Timbal API key never reaches it. - Limits: 600 requests a minute per service and 1,200 per connector, for all callers together. Request bodies up to
max_request_mb, uncompressed. - Every request is recorded in the audit log.
Know who is calling
Withidentity set to jwt (the default), every request carries an X-Timbal-Identity header: a token signed by Timbal that says who is calling. A service can use it to apply its own permissions per user, or ignore it.
It contains sub (user:{id}), org_id, email and aud (urn:timbal:connector:{connector_id}:service:{service}), and expires 60 seconds after it is signed. To trust it, the service checks:
- the signature, with the keys at
https://api.timbal.ai/.well-known/jwks.json(ES256); issishttps://api.timbal.ai;audis its own;exphas not passed, allowing a few seconds for clock differences.
Errors
Next steps
Configure connections
Databases and file shares on the same connector.
Troubleshooting
When
doctor or the service log names a failure.