Before you start
You need:- Your platform URL and an API key. Both come from Settings > API Key Management inside Saga. Open the page, create a key if you don’t have one, and copy both values.
- An MCP client that supports the streamable HTTP transport (Claude Desktop, Claude Code, Cursor, or any custom agent built on the MCP SDK).
Each customer has their own Saga domain, so your MCP endpoint is your own platform URL with
/api/mcp added. Use the platform URL shown in Settings > API Key Management — don’t guess the domain.Connect a client
Most clients only need the endpoint URL and anAuthorization header.
- Endpoint:
https://<your-domain>.sagalegal.io/api/mcp - Header:
Authorization: Api-Key <your-api-key>
.mcp.json file (for example Claude Code), add:
<your-domain> with your platform URL and <your-api-key> with the key from Settings > API Key Management.
Some clients only let you paste a bearer token. In that case use
Authorization: Bearer <your-api-key> instead — Saga accepts your API key in either form.What the agent can do
Once connected, the agent has these tools:| Tool | What it does |
|---|---|
ask_saga | Asks Saga a question and returns the answer, the same as chatting in the app. |
list_projects | Lists your projects, including ones shared with you. |
list_project_documents | Lists the documents in a project. |
search_project_documents | Searches a project’s knowledge base and returns the most relevant sections. |
fetch_project_document | Returns the full text of a document. |
list_workflows | Lists your workflows and the inputs each one expects. |
execute_workflow | Runs a workflow with text inputs and returns the result. |
Security
- Treat your API key like a password. Anyone with the key and your platform URL can act as you through Saga.
- Rotate or revoke the key at any time from Settings > API Key Management. Revoking it immediately stops any connected agent.
- If a key may have leaked, revoke it and create a new one, then update your client configuration.
Troubleshooting
- The client can’t connect or returns 401 Unauthorized — check that the endpoint ends in
/api/mcp, that the header isAuthorization: Api-Key <your-api-key>, and that the key hasn’t expired or been revoked. Create a fresh key in Settings > API Key Management if needed. - A workflow reports as paused — workflows that wait for input partway through can’t be resumed over MCP, and file inputs aren’t supported. Run those from the Saga app instead.
