AgentKit is a governed MCP (Model Context Protocol) tool server and agent runtime designed to provide a secure, auditable tool invocation environment for Claude Desktop, Cursor, and custom agents. Its core features include: declarative tool definitions, typed effects, and guardrails that do not depend on prompts.
Purpose and positioning: As an MCP server, AgentKit can be used by any MCP client (such as Claude Desktop, Cursor, LangGraph, Claude Agent SDK, CrewAI). It enforces capability boundaries beneath the model through a policy engine, ensuring that tool invocations comply with preset policies and logging all allowed and denied invocations.
Main capabilities:
- Declarative tools: Define tools via YAML on your own Postgres or HTTP API, with no need to write Python or modify code.
- Typed effects: Each tool declares an effect (read, write, or destructive); data-changing tools actually change data.
- Guardrails: Write operations are disabled by default (AGENTKIT_ALLOW_WRITES=false); destructive operations require a human-held approval token (AGENTKIT_APPROVAL_TOKEN), which the model cannot see; all mutating tools support dry-run; every invocation (allowed and denied) is audited, and the reason is recorded when denied.
- Built-in business intelligence reference pack: Includes 6 core MCP tools (query_kpis, get_company_health, detect_kpi_anomalies, forecast_metric, list_available_metrics, get_executive_summary), as well as additional tools loaded from YAML packs (for example, the annotations pack adds 3 tools: list_annotations, annotate_metric, retract_annotation).
- 10 MCP resources: kpi://{domain}/latest, covering Finance, People, Operations, Customer, Engineering, Growth, Logistics, ESG, IT, Security, and other domains.
- 1 reusable prompt: monthly_executive_briefing.
- Multi-provider LLM routing: configured through LiteLLM, supporting assigning different models to different roles (LLM_REASONING, LLM_DEFAULT, LLM_JUDGE), and supporting local/self-hosted models (LLM_LOCAL + INFERENCE_MODE=local).
- LangGraph three-agent workflow: Planner → Analyst → Reporter, located in workflow.py.
- Demos and scaffolding: Claude Agent SDK demo (demos/claude_agent_sdk_demo.py), CrewAI demo (demos/crewai_demo.py), DSPy research scaffolding (research/dspy_experiment.py).
- Test coverage: 90+ tests, covering smoke, API, integration, MCP protocol, policy guardrails, and LangGraph workflows.
Usage:
- For MCP clients, the published package can be run with uvx without checking out the code.
- Claude Desktop configuration: add the configuration in ~/.config/Claude/claude_desktop_config.json; MCP_TRANSPORT=stdio must be set, otherwise the SSE network port is used by default, causing tools not to appear. Local stdio mode does not require MCP_AUTH_TOKEN.
- Multi-provider LLM routing: set each role's model and the corresponding API keys (GROQ_API_KEY, ANTHROPIC_API_KEY, OPENAI_API_KEY, etc.) via environment variables; see .env.example for details.
- Diagnostics: set LOG_LEVEL to DEBUG to obtain detailed logs.
- Telemetry: by default, a single anonymous startup ping is enabled (service name, version, random installation ID; does not include prompts, tool calls, or application data). It can be disabled via TELEMETRY_OPTOUT=true or DO_NOT_TRACK=1, or redirected via TELEMETRY_URLto.
- After restarting Claude Desktop, you can ask questions, for example "What's our company health right now?", "Forecast revenue for the next 6 months.", "Are there anomalies in the Finance KPIs?".
Applicable scenarios: scenarios that need to provide governed tool invocation for agents, especially enterprise environments involving data writes or destructive operations that require approval and auditing; business intelligence analysis, KPI monitoring, forecasting, etc.
Limitations and notes:
- Write operations are disabled by default and must be explicitly enabled.
- Destructive operations require a human approval token.
- The project uses the AGPL-3.0 open source license and is free for researchers, students, and open source enthusiasts; for commercial use, see COMMERCIAL.md for a commercial license.
- The built-in business intelligence tools are a reference package that demonstrates the mechanisms and are not the upper limit of the server's capabilities; tools can be extended through YAML packs.
- The domain list, tool pack sets, and resource/prompt registrations are all derived from server data (src/agentkit_mcp/data/seed.py, packs/*.yaml), not hardcoded; adding domains or tool packs will automatically extend them.
- Supports both stdio and SSE transports.
- Verified with Claude Desktop, Cursor, and Devin configurations.
For more information, refer to RESEARCH.md, BENCHMARK.md, SELF_HOSTING.md, ARCHITECTURE.md, SECURITY.md, and the online user guide.