/mcp endpoint.
Endpoint
convert, split, shape, and extract pipeline tools, plus tools to manage workspaces, ingestions, and queries. See Tools for each tool’s parameters.
Authentication
The MCP server supports two ways to authenticate, both presented as a Bearer token in theAuthorization header:
- OAuth — for interactive clients, with AiQL as the authorization provider.
- API key — for programmatic access from scripts and services.
OAuth
The MCP server is an OAuth 2.1 protected resource, with AiQL acting as the authorization server. Compatible clients discover the authorization server automatically: when a request arrives without a valid token, the server responds with401 Unauthorized and a WWW-Authenticate header pointing at the protected resource metadata.
API key
For programmatic access, pass an AiQL API key as the Bearer token. API keys are prefixed withaiql_. Generate one in the Dashboard and keep it in an environment variable rather than committing it to source control.
Workspace scope
The workspace-scoped tools — ingestions and queries — never take aworkspace_id parameter. Instead, the workspace is fixed for the session, and how it is determined depends on how you authenticate:
- OAuth — you select the workspace during the sign-in flow, and it travels with the access token. Nothing else to pass.
- API key — keys are not bound to a workspace, so you pass the workspace in the
AiQL-Workspaceheader on every request, the same header the REST API uses.
AiQL-Workspace header with your API key. To work with a different workspace, switch it in the OAuth flow or change the header.
Connect a client
How you connect depends on the credential you use.With OAuth
Point an OAuth-capable MCP client at the endpoint and let it run the sign-in flow. No key goes in the config.With an API key
For clients or automation that authenticate with a key, send it in theAuthorization header. Because an API key is not bound to a workspace, also send the AiQL-Workspace header so the ingestion and query tools know which workspace to operate on.
The MCP server uses the streamable HTTP transport. Make sure your client supports HTTP-based MCP servers rather than only stdio.
Next steps
Tools
See the tools the MCP server exposes and their parameters.
Authentication
Learn how Bearer tokens secure your requests.