Dexby

MCP

Connect Claude Code, Cursor or any MCP client to Dexby.

Dexby serves two kinds of MCP URL. Both use Streamable HTTP and your API key as a bearer token.

Session URLMCP endpoint URL
URLhttps://api.dexby.ai/v1/sessions/<session-id>/mcphttps://mcp.dexby.ai/<endpoint-slug>/<user-id>
Created byYour code, with sessions.create()You, once, in the dashboard
ToolsMeta tools to search and run the session's toolsThe exact tools you picked, or tools to search them
LastsUntil the session expires (24 hours by default)Until you delete it
Best forAgents your code starts per userA fixed URL to paste into a client config

Header for both: Authorization: Bearer $DEXBY_API_KEY (get the key under Configure → API keys in the dashboard).

Session URL

Create a session and read its mcpUrl:

session-mcp.ts
import { Dexby } from '@dexby.ai/sdk'

const dexby = new Dexby()

const session = await dexby.sessions.create({ userId: 'user_123', connectors: ['slack'] })

console.log(session.mcpUrl) // https://api.dexby.ai/v1/sessions/<session-id>/mcp

With the REST API, POST /v1/sessions returns the same mcpUrl. See Sessions for what a session can include.

MCP endpoint URL

An MCP endpoint is a fixed URL with a set of tools you choose.

  1. In the dashboard, open Distribute → MCP endpoints and click New endpoint.
  2. Enter a name and a URL slug, such as support-agent, and click Create endpoint. The slug identifies the endpoint in the URL. It cannot change later.
  3. On the endpoint's page, pick the tools, set Allow global accounts, and save.

An endpoint has no data class setting of its own. Which tools exist is the project's choice: tools classified phi exist only in a project that handles health data, which is coming soon.

The endpoint's page also shows the full URL and ready-made configs to copy.

  • <endpoint-slug> is the slug you chose. The project comes from the API key, so the URL has no project id.
  • <user-id> identifies the user whose connected accounts the client uses, percent-encoded as one path segment (encodeURIComponent), so acme/john becomes acme%2Fjohn. Every URL names its user: one that ends at the slug answers 400 with a JSON-RPC error saying to add /<your user id>.
  • dexby.mcp.url({ slug, userId }) in the SDK builds the URL, and dexby.mcp.endpoints.list() reads the project's endpoints.
  • The API also serves endpoints at <api-url>/v1/mcp/<endpoint-slug>/<user-id>. Self-hosted deployment packaging is planned.
  • Legacy: https://api.dexby.ai/v1/mcp/<endpoint-slug>?user=<user-id> still works and behaves the same, a missing user included. New configs should use the URL above.
  • Allow global accounts (off by default) lets calls use the project's global accounts, for the actions an admin allowed each one. Off, a user without an account of their own gets a link to connect one.
  • Find tools by search (off by default) changes what the client is given. Off, it gets every tool you picked, each with its schema, and an endpoint holds at most 500. On, it gets four tools however many you picked, up to 5,000: dexby_search_actions finds actions among them by a short query, dexby_get_action_schemas returns their inputs, dexby_execute runs one, and dexby_list_connections lists the user's accounts for one. There, dexby_execute takes the account ID as optional: without one it uses the user's one account that can run the action, and with several it answers AMBIGUOUS_CONNECTION until you pass one. The client can send several calls at once; each runs on its own.

Client configs

terminal
claude mcp add --transport http dexby \
  "https://mcp.dexby.ai/<endpoint-slug>/<user-id>" \
  --header "Authorization: Bearer $DEXBY_API_KEY"

A session URL works in the same configs: use it as the url.

Why the slug is in the URL

MCP clients connect to one URL plus headers, so the URL has to say which endpoint. The API key already says which project, and the last part of the path says which user.

On this page