Skip to main content
Cruq AI exposes a Model Context Protocol server so agents and MCP clients (Claude, Cursor, and others) can drive the platform directly, using the same tools as the REST API.

Endpoint

  • URL: https://mcp.cruq.ai (https://api.cruq.ai/mcp also works)
  • Transport: Streamable HTTP
  • Auth: sign in with your Cruq AI account (OAuth), or send an API key as a bearer token. Signing in gives your client every tool, including the build tools. A runtime key (cruq_sk_...) gets the tools that run, read and search. A management key (cruq_mk_...) also gets the build tools.
The server is stateless, so any MCP client that speaks Streamable HTTP can connect without session setup.

Connecting a client

Most clients sign you in through the browser. Add the server, and the client opens a Cruq AI consent page the first time it connects. Approve it and you’re done. Claude Code:
Codex:
Cursor (~/.cursor/mcp.json):
In Claude, add a custom connector with the URL https://mcp.cruq.ai. In ChatGPT, open Plugins → Add → Add custom MCP server, paste the same URL and keep OAuth.

With an API key

For scripts, CI and servers where no one can sign in, send a key instead:

How sign-in works

A request without a token gets a 401 with a WWW-Authenticate header that points to https://mcp.cruq.ai/.well-known/oauth-protected-resource (RFC 9728). That names Cruq AI as the authorization server. The client registers itself, runs the OAuth flow with PKCE, and sends the access token on every call.

Tools

Each tool maps to the same operation as the REST API; see the OpenAPI spec for the full schema.

Build tools

With a management key, the server also lists tools for building agents from a conversation. This is what the Agent Builder team runs on, and any MCP client can use them the same way. create_agent and update_agent take tools by name, not by id:
  • builtins are builtin tool keys. browser also needs browser_domains, the sites it may open.
  • tools are tool names as list_capabilities shows them. A connector’s own name ("Tavily") picks all of its tools.
  • On update_agent, a builtins, tools or subagents list replaces that list only, so adding a builtin keeps the agent’s integrations.
  • Results carry warnings, for example a model whose provider is not connected, or an integration that is attached but not connected yet.
None of the build tools delete anything. Agents with routers or several agent nodes can be read with get_agent but must be edited in the dashboard.