Connecting External Clients
NimbleBrain can act as a tool server for external apps that support the MCP protocol — like Claude Desktop, Claude Code, Cursor, or VS Code. Connect once and every tool from every installed app in your workspace is available inside those clients, without switching to the web UI.
How it connects
Section titled “How it connects”Authentication uses OAuth — there is no static API key to copy around. When you point a client at NimbleBrain:
- The client hits
/mcpwithout credentials and gets a401with aWWW-Authenticateheader pointing to NimbleBrain’s discovery endpoint. - The client follows RFC 9728 / RFC 8414 discovery to find the authorization server (AuthKit).
- A browser window opens for you to log in.
- The client receives a JWT and uses it on subsequent requests.
Clients that support MCP OAuth discovery (Claude Code, Claude Desktop, Cursor) handle all of this automatically.
What you need
Section titled “What you need”- Instance URL — the address of your NimbleBrain instance (e.g.,
https://your-team.nimblebrain.ai) - Workspace ID — found in Settings → Profile under the “MCP Connection” card. Always include it as the
X-Workspace-Idheader in your client config so connections keep working if you’re later added to more workspaces.
Claude Code
Section titled “Claude Code”Use the CLI:
claude mcp add --transport http nimblebrain https://your-team.nimblebrain.ai/mcp \ --header "X-Workspace-Id: ws_your_workspace_id"Or add to your project’s .mcp.json:
{ "mcpServers": { "nimblebrain": { "type": "http", "url": "https://your-team.nimblebrain.ai/mcp", "headers": { "X-Workspace-Id": "ws_your_workspace_id" } } }}Claude Desktop
Section titled “Claude Desktop”Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{ "mcpServers": { "nimblebrain": { "type": "http", "url": "https://your-team.nimblebrain.ai/mcp", "headers": { "X-Workspace-Id": "ws_your_workspace_id" } } }}The first time Claude Desktop uses the server, it will open a browser for OAuth login.
Cursor
Section titled “Cursor”Open Cursor Settings → MCP → Add Server, choose the HTTP/URL-based server type, and set the URL to https://your-team.nimblebrain.ai/mcp. Cursor handles the OAuth flow automatically. See Cursor’s MCP documentation for the latest details.
Other MCP clients
Section titled “Other MCP clients”Any client that implements Streamable HTTP transport and either OAuth 2.0 (RFC 9728/8414 discovery) or a pre-issued bearer token can connect. See MCP Endpoint for the protocol-level reference, including the discovery endpoints and manual OAuth flow.
What’s exposed
Section titled “What’s exposed”When an external client connects, it gets every tool installed in your workspace — the same tools the agent uses in the web UI. The client sees a flat tool list; NimbleBrain handles routing each call to the right app internally.
Two filters apply:
- Feature flags — tools gated by a disabled flag (e.g.,
nb__manage_appwhenbundleManagement: false) are hidden. - Role — admin-only tools (
nb__manage_users,nb__manage_workspaces) are hidden from non-admin members.
If your admin installs or removes an app, the change is reflected on the next tools/list call.