# MCP + AgentDB

Use AgentDB from any MCP client: JWT auth, mcp.json config, and connector tools (register → introspect → invoke).

> HTML version: https://staging.agentdb.com/integrations/mcp — this file (/docs/integrations/mcp.md) is its markdown twin.

## AgentDB from any MCP client

Add the AgentDB MCP server to your client's `mcp.json`, authenticate with a
JWT (obtained by [pairing](/start) or [email login](/integrations/email)),
and your agent gets tools for entity CRUD, semantic search, and external
connectors:

```json
{
  "mcpServers": {
    "agentdb": {
      "url": "https://api.agentdb.com/rest/api/mcp/sse?profile=connectors",
      "headers": { "Authorization": "Bearer <your JWT>" }
    }
  }
}
```

Auth is the JWT only — no app-id headers. Clients speak **Streamable HTTP**
(POST to that URL); do not force legacy SSE transport. Profiles scope which
tool set the session exposes.

## Connector tools: register → introspect → invoke

Beyond entity storage, MCP exposes AgentDB's connector surface: register an
external service (an OpenAPI spec, another MCP server, or an OAuth app),
introspect what it offers, then invoke its operations — all from the same
client session that reads and writes your entities.

Prefer raw HTTP? The same capabilities are available over
[REST](/integrations/rest).
