DeAlgo MCP Server
Runtime decision firewall for AI agents that exposes the CSC engine as an MCP server, allowing agents to consult before executing risky actions.
README
DeAlgo MCP Server
Runtime decision firewall for AI agents. Exposes the CSC engine (via the
dealgo-portal control layer) as a Model Context Protocol server so any
MCP-aware client — Claude Desktop, Claude Code, Cursor, custom agents — can
consult CSC before executing risky actions.
Claude / agent
↓
MCP tool: csc_check(...)
↓
dealgo-portal /api/csc/check (Bearer dealgo_sk_live_…)
↓
CSC engine: reality · policy · throttle gates
↓
{ decision, action, reason, v2_bias, latency_ms }
Tools
csc_check(feed, risk?, volatility?, confidence?, symbol?, source?, intent?, v2_aware=True)
Primary tool. Score one signal/action against CSC. Returns
{ "decision": "APPROVE" | "DELAY" | "DENY",
"action": "EXECUTE" | "WAIT" | "REJECT",
"reason": "...",
"v2_bias": -0.018,
"stimulus_id": "stim_…",
"latency_ms": 41 }
Proceed only on APPROVE. On DELAY, retry with backoff. On DENY, do
not retry — surface the reason to the user.
check_action(intent, action, actor_id, domain, environment, metadata)
Backwards-compat shim. Maps the legacy governance payload onto csc_check
so existing demos and Claude Desktop configs keep working. Prefer
csc_check directly in new code.
Resource
governance://decisions/recent — last 20 decisions logged for the
configured API key. Lets agents introspect their own history.
Setup (recommended — published package)
-
Install:
pip install dealgo-mcp -
Get a sandbox key from your portal at https://api.dealgo.io/keys (or
https://api.dealgo.io/quickstartfor a one-click reveal). Use adealgo_sk_test_…key for a no-meter sandbox,dealgo_sk_live_…for prod. -
Wire into Claude Desktop. Merge this into the config:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "dealgo-csc": { "command": "dealgo-mcp", "env": { "DEALGO_API_KEY": "dealgo_sk_test_…", "DEALGO_API_URL": "https://api.dealgo.io" } } } } - macOS:
-
Restart Claude Desktop. Then ask Claude:
"Use
csc_checkbefore doing anything risky."Every risky action will now consult
/v1/decideand surface the verdict.
Setup (local dev — from source)
git clone https://github.com/dealgo-systems/dealgo-mcp-server
cd dealgo-mcp-server
pip install -e . # editable install — picks up changes immediately
Then point Claude Desktop config to the editable install ("command": "dealgo-mcp"
still works after pip install -e . — entry point is registered system-wide).
Smoke test
DEALGO_API_KEY=dealgo_sk_test_... python smoke_test.py
Exercises all three CSC gates (reality, policy, throttle), the backwards-compat shim, and the recent-decisions resource. Pass = CSC governance is live over MCP.
Configuration
| Env var | Default | Required |
|---|---|---|
DEALGO_API_KEY |
(none) | yes |
DEALGO_API_URL |
https://api.dealgo.io |
no |
Now Claude can call CSC before executing actions.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.