AgentKit
Click on "Deploy 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., "@AgentKitForecast revenue for the next 6 months."
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.
AgentKit — A Governed MCP Tool Server
An MCP server where tools are declarative, effects are typed, and every action is policy-gated and audited — usable by any MCP client (Claude Desktop, Cursor, LangGraph, Claude Agent SDK, CrewAI).
Three things distinguish it from a typical MCP server:
Declarative tools — define tools in YAML over your own Postgres or HTTP API. No Python, no fork. (docs/REUSE.md)
Real actions, not just reads — tools declare an effect (
read/write/destructive) and mutating tools genuinely mutate.Guardrails that hold regardless of the prompt — writes are off by default, destructive actions need a human-held approval token the model never sees, everything supports dry-run, and every call (allowed and denied) is audited. (SECURITY.md)
The bundled business-intelligence tools below are the reference pack that demonstrates all of this — not the limit of what the server does.
Self-hosting: see SELF_HOSTING.md to run your own instance.
What It Does
Reference BI pack (built in):
6 core MCP tools:
query_kpis,get_company_health,detect_kpi_anomalies,forecast_metric,list_available_metrics,get_executive_summary— plus any tools loaded from declarative YAML packs (packs/), so the real tool count at runtime is 6 or more, not a fixed number. The bundledannotationspack adds 3 more (list_annotations,annotate_metric,retract_annotation) demonstrating a guarded write/destructive path — see below.10 MCP resources:
kpi://{domain}/latestfor each of this project's real seeded domains — Finance, People, Operations, Customer, Engineering, Growth, Logistics, ESG, IT, Security (src/agentkit_mcp/data/seed.py).1 reusable prompt:
monthly_executive_briefing
The domain list, tool-pack set, and resource/prompt registration are all derived from the same data this server serves (
src/agentkit_mcp/data/seed.py,packs/*.yaml), not hardcoded, so adding a domain or tool pack extends this list automatically. You can also add your own@mcp.resource/@mcp.promptdecorators. See docs/REUSE.md.
Write and destructive actions are real, not aspirational. The annotations pack
lets an agent record a durable note on a metric (annotate_metric, effect write) and
soft-delete one it got wrong (retract_annotation, effect destructive — requires a
human-held AGENTKIT_APPROVAL_TOKEN the model never sees). Both are off by default
(AGENTKIT_ALLOW_WRITES=false) — see SECURITY.md
and RESEARCH.md §2 for the full policy-engine model.
Platform capabilities:
Declarative tool packs — add tools over your own Postgres/HTTP in YAML (
packs/)Typed effects + policy engine —
GET /api/policypublishes the capability envelopeAudit trail —
GET /api/audit, allowed and denied, with deny reasonsMulti-provider LLM routing incl. self-hosted —
GET /api/llm-routingLangGraph 3-agent workflow in
workflow.py(Planner → Analyst → Reporter)Claude Agent SDK demo in
demos/claude_agent_sdk_demo.pyCrewAI demo in
demos/crewai_demo.pyDSPy research scaffold in
research/dspy_experiment.py67 tests across smoke, API, integration, MCP protocol, policy guardrails, and LangGraph workflow
Related MCP server: agentic-observability-mcp
PyPI Package
pip install agentkit-mcp # v0.1.15
agentkit-mcp # CLI entrypointQuick Start
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # fill in keys + POSTGRES_URL
python mcp_server.pyClaude Desktop Setup
Add to ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"agentkit": {
"command": "python",
"args": ["/abs/path/to/agentkit/mcp_server.py"],
"env": {
"MCP_TRANSPORT": "stdio",
"POSTGRES_URL": "postgresql://...",
"LOG_LEVEL": "DEBUG",
"TELEMETRY_OPT_OUT": "true"
}
}
}
}MCP_TRANSPORT=stdio is required here — without it mcp_server.py defaults to serving
over SSE (a network port) instead of talking JSON-RPC over the pipes Claude Desktop
spawns it with, and no tools will appear. Local stdio mode doesn't need
MCP_AUTH_TOKEN (the OS process boundary is the auth boundary); that variable only
matters for the SSE/network path.
Multi-Provider LLM Routing
The 3-agent LangGraph workflow (workflow.py) and the demos/research scripts route
each role to its own model via LiteLLM, configured with
plain provider/model strings — no code changes to switch providers:
LLM_REASONING— planner + reporter agents (defaults toanthropic/claude-sonnet-4-6)LLM_DEFAULT— the tool-calling analyst agent (defaults togroq/openai/gpt-oss-120b)LLM_JUDGE— used by the eval suite (defaults toanthropic/claude-haiku-4-5)LLM_LOCAL+INFERENCE_MODE=local— route to a local/self-hosted model (e.g. Ollama) instead of a hosted provider
Set the matching provider API key(s) (GROQ_API_KEY, ANTHROPIC_API_KEY,
OPENAI_API_KEY) for whichever models you reference above. See .env.example.
Diagnostics: adjust
LOG_LEVELtoDEBUGfor verbose logs.Telemetry: off by default (
TELEMETRY_URLis blank out of the box). SetTELEMETRY_URLto opt in to a single anonymous startup ping (at most once per ~6 hours per instance — a timestamp plus a randomly generated, non-hardware-derived install ID; no prompts, tool calls, or application data), or setTELEMETRY_OPT_OUT=trueto disable it outright regardless ofTELEMETRY_URL.
Restart Claude Desktop, then ask:
"What's our company health right now?"
"Forecast revenue for the next 6 months."
"Are there anomalies in the Finance KPIs?"
LangGraph Workflow
from agentkit_mcp.workflow import analyze
result = analyze("What drove gross margin in Q1?")
print(result["report"])Architecture
Claude Desktop / Cursor / LangGraph
│
▼ MCP
┌────────────────────────┐
│ mcp_server.py │
│ 6 core tools (read) │
│ + N pack tools │
│ (read/write/ │
│ destructive) │
│ 10 resources, 1 prompt │
└────────────┬───────────┘
│
┌───────────────────┼──────────────────┐
▼ ▼ ▼
pg_store insights forecasting
(KPIs, real (health, (scikit-learn
domains + write- anomalies) LinearRegression
back annotations) + Monte Carlo CI)Research Contribution
Standardized MCP middleware — unified stdio and SSE transport for hot-swappable agent tools.
Capability policy engine — formal effect separation (read/write/destructive) and prompt-independent guardrails.
Multi-agent interoperability — verified across Claude Desktop, Cursor IDE, and Devin AI.
For the full formalization, literature context, and citation details, see RESEARCH.md.
Benchmark Replication Suite
Run the reproducible benchmark evaluation suites:
# Test MCP framework overhead
python3 eval/run_benchmarks.py --seed 42
# Full 43-scenario LangGraph suite across all 10 KPI domains
python3 eval/run_dspy_eval.py
# Comprehensive MCP tool execution metrics
python3 eval/run_mcp_tools_benchmark.pyIntegration Guides (Claude Desktop, Cursor, Devin)
Claude Desktop: See claude_desktop_config.example.json and docs/INTEGRATION_GUIDE.md
Cursor IDE: See cursor_mcp.example.json
Devin AI Agent: See devin_mcp.example.json
Automated client verification:
python3 tests/test_mcp_client.pyLicense & Enterprise Use (Dual-License)
This project is open-source under the AGPL-3.0 License. It is completely free for researchers, students, and open-source hobbyists. Commercial license: see COMMERCIAL.md.
This server cannot be deployed
Maintenance
Related MCP Connectors
Let AI agents query data and act across all your business apps via MCP.
Analytics your AI agent can actually use. Track, experiment, and optimize via MCP.
100+ MCP tools for AI agents: content metadata, trade intelligence, business-expertise analysis.
Social media analytics, video analysis, and competitor intel for any MCP-compatible AI agent.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query live schema, lineage, and query-context across data warehouses, dbt projects, orchestration systems, and BI tools via MCP tools.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides unified AI agent observability including tracing, cost tracking, performance monitoring, anomaly detection, and audit trails via MCP.31 npmMIT
- AlicenseAqualityFmaintenanceProvides 14 MCP tools for AI agent infrastructure, enabling knowledge base queries, skill search, handoffs, blueprint validation, trust scoring, identity verification, SLA validation, and compliance checks.22MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to investigate production incidents by exposing service health, logs, and deployment data through MCP tools.4 npm-