Authentication
How API keys and authentication work across Quantish MCP servers.
Overview
Quantish uses API keys to authenticate requests to our MCP servers. Each server (Discovery, Polymarket, Kalshi) requires its own API key.
Discovery API Key
Read-only access to search markets across platforms
Polymarket API Key
Full trading access on Polymarket (requires access code)
Kalshi API Key
Full trading access on Kalshi via DFlow (requires access code)
Generating API Keys
Discovery (Free)
- Go to Get API Key
- Select "Discovery" server
- Enter your email
- Click "Generate API Key"
No access code required for Discovery.
Polymarket & Kalshi (Access Code Required)
- Email hello@quantish.live to request an access code
- Include your use case and expected trading volume
- Receive your access code within 24 hours
- Use the access code when generating your API key
Why access codes? Access codes help us manage server capacity and ensure quality service for all users. They also help prevent abuse.
Using API Keys
In Cursor MCP Config
Add your API key to ~/.cursor/mcp.json:
{
"mcpServers": {
"quantish_discovery": {
"url": "https://quantish.live/mcp",
"headers": {
"X-API-Key": "qm_your_api_key_here"
}
}
}
}Direct API Calls
For direct HTTP requests, include the API key in the X-API-Key header:
curl -X POST https://quantish.live/api/mcp/execute \
-H "Content-Type: application/json" \
-H "X-API-Key: qm_your_api_key_here" \
-d '{"tool": "search_markets", "args": {"query": "bitcoin"}}'API Key Format
Quantish API keys follow this format:
qm_Prefix identifying Quantish keys[32 chars]Cryptographically random alphanumeric stringExample: qm_JuTmBHbIyBrmUd1Aif__r1cEpY11dqbm
Security Best Practices
🔒 Keep Keys Secret
Never share your API key publicly. Don't commit it to git or post it in forums/chat.
🔄 Rotate Regularly
Generate new API keys periodically. Revoke old keys you no longer use.
📍 Use Separate Keys
Use different API keys for development vs production. This limits exposure if one is compromised.
🚨 Monitor Usage
If you notice unexpected activity, revoke your key immediately and generate a new one.
Rate Limits
API requests are rate limited to ensure fair usage:
| Server | Limit | Notes |
|---|---|---|
| Discovery | 100 req/min | Search and read operations |
| Polymarket | 60 req/min | Trading operations may have lower limits |
| Kalshi | 60 req/min | Subject to DFlow API limits |
Rate limit errors return HTTP 429. Wait and retry with exponential backoff.
API Endpoints
Discovery
MCP: https://quantish.live/mcp
Tools: https://quantish.live/api/mcp/tools
Execute: https://quantish.live/api/mcp/execute
Polymarket
MCP: https://polymarket-mcp.quantish.live/mcp
Kalshi
MCP: https://kalshi-mcp.quantish.live/mcp
Revoking API Keys
To revoke an API key or report suspicious activity:
- Email hello@quantish.live
- Include the key prefix (first 10 characters, e.g.,
qm_JuTmBHb) - Describe the reason for revocation
Keys are revoked immediately. Generate a new key to continue using the service.