Sparkient MCP Server
OfficialAllows LangChain agents to integrate with Sparkient for sub-100ms structured decisions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sparkient MCP ServerMake a decision on whether to approve this transaction"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sparkient MCP Server
MCP (Model Context Protocol) server for the Sparkient Decision Intelligence API. Connect your AI agents directly to Sparkient for sub-100ms structured decisions — no REST client code needed.
Quick Start
Cloud Server (Recommended)
The cloud MCP server at mcp.sparkient.ai wraps the Sparkient REST API as MCP tools. You need a Sparkient API key to connect.
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"sparkient": {
"url": "https://mcp.sparkient.ai/mcp",
"headers": {
"Authorization": "Bearer sk-YOUR_API_KEY"
}
}
}
}Cursor
In Cursor Settings → MCP, add:
{
"mcpServers": {
"sparkient": {
"url": "https://mcp.sparkient.ai/mcp",
"headers": {
"Authorization": "Bearer sk-YOUR_API_KEY"
}
}
}
}VS Code
Create .vscode/mcp.json in your project:
{
"servers": {
"sparkient": {
"type": "http",
"url": "https://mcp.sparkient.ai/mcp",
"headers": {
"Authorization": "Bearer sk-YOUR_API_KEY"
}
}
}
}Smithery
Install via Smithery:
npx -y @smithery/cli install sparkient --client claudeLocal Development
git clone https://github.com/sparkient/sparkient-mcp-server.git
cd sparkient-mcp-server
pip install -e ".[dev]"
# Set your API key and start
export SPARKIENT_API_URL=https://api.sparkient.ai
python -m sparkient_mcpRelated MCP server: APIClaw
Available Tools
Tool | Description |
| Make a structured decision in under 100ms |
| Make up to 50 decisions in a single call |
| List available decision types |
| Get full config of a decision type |
| Create a new decision type |
| Add labelled training examples |
| Generate synthetic examples via Gemini |
| Trigger async model training |
| Poll training status and stage progress |
| Query past decision logs |
| Get org-level aggregate metrics |
| Check credit balance and plan info |
| Download standalone model for offline inference |
Available Resources
URI | Description |
| List all decision types (for agent discovery) |
| Full schema of a specific decision type |
Directory Listings
The Sparkient MCP server is listed on the following directories so agents and developers can discover it:
Directory | URL | Status |
Smithery | ✅ Listed | |
Glama | Pending (requires public GitHub repo) | |
PulseMCP | Pending (submit via site) | |
MCP Registry | Pending (requires |
Smithery Configuration
Smithery discovers tools by scanning the live server. The MCP server includes middleware that serves tool metadata to directory scanners that don't follow the full MCP handshake (sending tools/list without initialize).
Key implementation details:
Stateless HTTP mode (
stateless_http=True): Required for Cloud Run where requests route to different instances.Scanner middleware (
UnknownMethodGuard): Intercepts discovery requests without a session and serves tool metadata directly from the FastMCP instance. Also returns-32601for non-standard methods likeai.smithery/events/list.Auth: Smithery's gateway passes the user's API key via the
Authorizationheader.
Adding to a New Directory
Most MCP directories discover capabilities by connecting to the server and calling tools/list. The server is designed to respond correctly to both:
Standard MCP clients —
initialize→notifications/initialized→tools/list(returns via SSE)Directory scanners —
tools/listdirectly withoutinitialize(returns via JSON)
Local Edge MCP Server
For sub-10ms decisions with zero network dependency, use the edge MCP server:
pip install sparkient-edgeClaude Desktop config:
{
"mcpServers": {
"sparkient-edge": {
"command": "python",
"args": ["-m", "edge"]
}
}
}The edge server uses downloaded edge bundles (CEL rules + ONNX models) for local inference. Export a bundle from the Sparkient dashboard or via the export_edge_bundle MCP tool.
See sparkient-edge on PyPI for details.
Environment Variables
Variable | Default | Description |
|
| Base URL of the Sparkient API |
|
| HTTP port for the MCP server |
Architecture
AI Agent (Claude/Cursor/VS Code/LangChain)
↓ Streamable HTTP + API Key
Sparkient MCP Server (this package)
↓ httpx (async HTTP)
Sparkient REST API (api.sparkient.ai)
↓
Decision Pipeline: CEL Rules → ONNX Classifier → Gemini EscalationThe MCP server is a stateless thin wrapper. Each request is handled independently — no session tracking. Multiple Cloud Run instances serve concurrent requests behind a single URL.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sparkient/sparkient-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server