01 / API & SDKS · OFFICIAL INTEGRATION INTERFACES
Integrate in minutes. Keep control of the state model.
ClueState provides ergonomic, zero-dependency SDKs for TypeScript and Python, standard REST endpoints with Bearer auth, and a Model Context Protocol (MCP) server for native AI tool calling.
TYPESCRIPT & JAVASCRIPT SDK · @cluestate/sdk
Zero Dependencies. Universal Fetch.
Works seamlessly across Node.js 18+, Bun, Deno, Cloudflare Workers, Next.js, and browser runtimes.
PYTHON SDK · cluestate-sdk
Pydantic Models. Async & Sync Clients.
Lightweight client depending only on httpx and pydantic. Ideal for FastAPI backends, LangChain, and agent runtimes.
REST API
cURL / HTTP Endpoints
Authenticate using Bearer tokens generated from the ClueState dashboard:
curl -X POST https://app.cluestate.com/api/ingest \
-H "Authorization: Bearer cs_live_..." \
-H "Content-Type: application/json" \
-d '{"external_id": "cust_402", "content": "..."}'
MODEL CONTEXT PROTOCOL
MCP Server Setup
Configure ClueState in Claude Desktop, Cursor, or Antigravity MCP settings:
{
"mcpServers": {
"cluestate": {
"command": "uvx",
"args": ["cluestate", "mcp"],
"env": { "CLUESTATE_API_KEY": "cs_live_..." }
}
}
}
SELF-HOSTING · DOCKER COMPOSE
Run the Complete Stack in 2 Commands
Clone the repository, configure your environment file, and launch ClueState with PostgreSQL, migration runner, and management UI under Apache 2.0.
git clone https://github.com/cluestate/cluestate.git
cd cluestate
cp .env.example .env
docker-compose up -d