MCP Integration
Use MarketIntell from Claude Desktop, Cursor, and other MCP-compatible clients
MCP (Model Context Protocol) Integration
MarketIntell exposes its core capabilities as a Model Context Protocol server, so any MCP-compatible client (Claude Desktop, Cursor, Continue, etc.) can call the brain, screen tokens, and pull alpha signals as native tools — no custom integration required.
Endpoint:
https://api.marketintell.ai/mcp/sseThe MCP server is mounted on the same host as the REST API. Health check:
https://api.marketintell.ai/mcp/health.
Available tools
The server exposes 17 tools:
| Tool | Description |
|---|---|
chat | Standard chat through the brain (T1 fast agent or T2 CoT pipeline) |
chat_deep | T3 supervisor mode — multi-specialist debate (Pro+ only) |
alpha_signals | Recent alpha signals with optional domain filter |
signal_performance | Accuracy / hit-rate stats for past signals |
screener | Fundamental + momentum screener |
portfolio_list | List the calling key's portfolios |
portfolio_create | Create a new portfolio |
portfolio_analyze | Run an analysis on an existing portfolio |
sessions_list | List the calling key's chat sessions |
billing_status | Current tier, daily quota, and monthly cost |
health | Provider + DB health snapshot |
register_challenge | Get a Proof-of-Work challenge for self-signup |
register | Submit the PoW solution + claim a free key |
execute_propose_intent | Propose a broker trade intent for review. No money moves. |
execute_approve_intent | Approve a pending intent and place the real broker order. |
execute_list_intents | List recent trade intents and their current states. |
execute_read_portfolio | Read connected broker equity, cash, buying power, and positions. |
The four execute_* tools require a broker-connected key with the trade scope.
Authentication
MCP requests authenticate the same way as REST:
X-API-Key: mi_k_...header, ORAuthorization: Bearer mi_k_...header
The auth path is separate from the REST middleware (/mcp/* is in the REST SKIP_PATHS list) and produces JSON-RPC-shaped errors that MCP clients understand.
Quick install — Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"marketintell": {
"url": "https://api.marketintell.ai/mcp/sse",
"headers": {
"X-API-Key": "mi_k_your_key_here"
}
}
}
}Restart Claude Desktop. The 17 tools should appear in the MCP picker.
Quick install — Cursor
Cursor's MCP config (Settings → Features → Model Context Protocol):
{
"marketintell": {
"url": "https://api.marketintell.ai/mcp/sse",
"headers": {
"X-API-Key": "mi_k_your_key_here"
}
}
}Catalogue installs
For a one-click install via an MCP catalogue:
- Smithery: smithery.ai/server/marketintell (manifest:
apps/api/mcp/smithery.yaml) - Glama: glama.ai/mcp/servers/marketintell (manifest:
apps/api/mcp/glama.json)
Smithery proxies your requests through their hosted runtime and forwards X-Smithery-Proxy: true so server-side analytics can attribute installs to the catalogue.
Worked example — chat tool
In Claude Desktop after install, ask:
"Use the marketintell
chattool to give me an ETH risk/reward analysis."
The agent will call:
{
"tool": "chat",
"arguments": {
"message": "ETH risk/reward analysis",
"domain": "crypto"
}
}And receive the same JSON shape as POST /v1/chat (without streaming — MCP tool responses are single-shot).
Worked example — alpha_signals tool
{
"tool": "alpha_signals",
"arguments": {
"domain": "crypto",
"limit": 10
}
}Returns the 10 most recent crypto signals with impact, sentiment, and tokens affected.
Rate limits
MCP requests share your account's daily query quota but use a separate per-key rate-limit bucket so a heavy chat session in the web UI can't starve your MCP tools.
Self-signup via PoW (no email needed)
The register_challenge + register tools let an MCP client provision its own Free key without a human signup flow:
- Call
register_challenge→ receive a SHA-256 PoW challenge. - Find a nonce where
SHA-256(prefix + nonce)starts withdifficultyleading zeros — readdifficultyfrom the challenge response, do not hard-code it. - Call
registerwith the challenge id + nonce. - Server returns a fresh
mi_k_*Free key.
The challenge response looks like this:
{
"challengeId": "chl_a1b2c3",
"prefix": "mi-pow-7f3a9c2e",
"difficulty": 5
}difficulty is server-set (5 is the current minimum floor and may rise). Read it from the response and build the target dynamically — never assume a fixed value:
import hashlib
def solve(prefix: str, difficulty: int) -> int:
target = "0" * difficulty
nonce = 0
while True:
digest = hashlib.sha256(f"{prefix}{nonce}".encode()).hexdigest()
if digest.startswith(target):
return nonce
nonce += 1
# challenge = register_challenge()
# nonce = solve(challenge["prefix"], challenge["difficulty"])You can attach an email later via POST /v1/auth/claim/:keyId.