Skip to main content
The connector can also make a web service on your network reachable from Timbal. Cursor, any MCP client or a Timbal agent calls it through Timbal, and the connector passes the requests on to the service. You don’t open an inbound port, and the service’s address and credential stay on the server: Timbal knows the service only by its name.
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

Each service gets its own block. It passes when the server answers an MCP handshake sent with the service’s credential:
A failing check says what to change. A 401 or 403 from a service that expects the caller’s identity is only a warning, because 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. The doctor command above loads that file too.
  • Windows and macOS: you can write the value directly in config.json instead. Protect the file like a credential.

Rules

  • The name (crm above) 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 services key. 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.
With at least one service configured, the connector reports the 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:
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
The tools, resources and prompts are the service’s own: Timbal passes the MCP traffic through, streaming included.
  • 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 auth entry. 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.
The API key in mcp.json is an organization-wide key. Protect the file like a credential and never commit it to version control.

Know who is calling

With identity 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);
  • iss is https://api.timbal.ai;
  • aud is its own;
  • exp has not passed, allowing a few seconds for clock differences.
The token is not a Timbal credential: the Timbal API refuses it.

Errors

Next steps

Configure connections

Databases and file shares on the same connector.

Troubleshooting

When doctor or the service log names a failure.