Home > Reference > API Reference
KnowStack uses MCP (Model Context Protocol) as its primary interface. All interactions happen through the MCP endpoint.
http://localhost:3100/api/v1
Tenant context is provided via HTTP headers on every request:
| Header | Required | Description |
|---|---|---|
x-ks-org |
Yes | Organization slug |
x-ks-project |
Yes | Project slug |
x-ks-context |
No | JSON array of additional project configs |
| Method | Path | Description |
|---|---|---|
| POST | /mcp |
MCP JSON-RPC endpoint |
| GET | /mcp |
MCP SSE endpoint |
The MCP endpoint provides all document, instruction, query, and memory tools. See MCP Reference for the full tool catalog.
| Method | Path | Description |
|---|---|---|
| POST | /mcp/admin |
Admin MCP JSON-RPC endpoint |
| GET | /mcp/admin |
Admin MCP SSE endpoint |
The Admin MCP endpoint provides organization and project management tools. No tenant headers required. See Admin MCP Reference for details.
- Common Headers - Request/response headers
- Error Handling - Error codes and handling
- MCP Reference - Full MCP tool documentation
- Admin MCP Reference - Organization and project management