API key — CI / server-to-server
Long-lived sutra_… API keys for non-interactive callers — CI pipelines, backend services, and scripts that run without a browser. Generate from your dashboard; use as a Bearer token.
Generate a key
Sign in to your KundaliMCP account.
Go to Dashboard → API Keys → Create key.
Copy the sutra_… value immediately — it is shown only once. Store it in an environment variable or secrets manager.
Keys are shown once
KundaliMCP stores keys as SHA-256 hashes — plaintext is never persisted. If you lose a key, revoke it and generate a new one.
Using your key
Pass the key as an Authorization: Bearer header on every tools/call request:
curl -X POST https://mcp.kundalimcp.com/mcp \
-H "Authorization: Bearer sutra_<32 hex chars>" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2026-07-28" \
-H "Mcp-Method: tools/list" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}'Calling a tool:
curl -X POST https://mcp.kundalimcp.com/mcp \
-H "Authorization: Bearer sutra_<32 hex chars>" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2026-07-28" \
-H "Mcp-Method: tools/call" \
-H "Mcp-Name: kundali" \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"_meta": {
"io.modelcontextprotocol/clientCapabilities": {},
"io.modelcontextprotocol/protocolVersion": "2026-07-28"
},
"arguments": {
"janma": {
"hour": 19,
"lat": 55.95,
"linga": "purusha",
"lon": -3.188,
"mday": 26,
"minute": 55,
"month": 6,
"second": 0,
"year": 1954
}
},
"name": "kundali"
}
}'Key properties
Format
Prefix sutra_ followed by 32 hex characters.
Tier
Your current account plan determines access, limited by any ceiling set on the key. A plan change does not require issuing a new key.
Rotation
Use Rotate in API Keys. Copy the replacement once, update your caller's secret and follow the retirement timing shown in the confirmation.
Revocation
Revoke from Dashboard → API Keys at any time. Revoked keys return 401 immediately.
Discovery
tools/list, initialize, ping, and /health support service discovery. GET /health supplies public build information; tool calls require a credential.