Agentkit logo

Agentkit

Governed MCP business-intelligence server for KPI queries, health scoring, anomaly detection, forecasting, and audited tool calls.

Install Agentkit

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "agentkit": {
      "command": "uvx",
      "args": [
        "agentkit-mcp"
      ],
      "env": {
        "POSTGRES_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env POSTGRES_URL=YOUR_VALUE_HERE --transport stdio agentkit -- uvx agentkit-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx agentkit-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

agentkit exposes governed business-intelligence tools over MCP, backed by a Postgres KPI store and configurable YAML tool packs for Postgres or HTTP APIs. Its core tools query metrics, calculate company health, detect anomalies, forecast trends, discover available data, and produce executive summaries. Typed effects, policy gates, dry-run support, approval tokens for destructive actions, and audit records control tool execution. Reach for it when agents need structured organizational analysis with operational guardrails rather than unrestricted database access.

Use cases

  • Query historical and real-time KPIs across business domains
  • Detect unusual metric behavior and operational risk
  • Forecast revenue or other named metrics over future periods
  • Generate leadership briefings from health, KPI, and anomaly data
  • Add policy-controlled tools over internal Postgres or HTTP APIs

Key features

  • Six core MCP business-intelligence tools
  • YAML-declared tools for Postgres and HTTP APIs
  • Typed read, write, and destructive effects
  • Policy gates, dry runs, and approval tokens
  • Audit records for allowed and denied calls
  • Z-score, IQR, and forecast analysis

Tools6

What Agentkit lets your agent do. Expand a tool for its parameters.

Verified live~1.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 52d

What it can do

From the 6 tools this server returned when we ran it.

Read-only tools · 6
Network at startup2 connections
Files written at startup30

Observed 2026-11-09 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · agentkit-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit22d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed6Callable tools this server registers over MCP.

How Agentkit works

What agentkit does

agentkit provides an MCP interface for business KPI analysis and governed tool execution. Its bundled reference pack covers Finance, People, Operations, Customer, Engineering, Growth, Logistics, ESG, IT, and Security data. Agents can inspect available metrics, retrieve historical or real-time time-series values, calculate an organizational health score, identify statistical deviations, forecast a named metric, or request a cross-domain executive briefing.

The six core tools are query_kpis, get_company_health, detect_kpi_anomalies, forecast_metric, list_available_metrics, and get_executive_summary. The server can also load additional tools from YAML packs. The bundled annotations pack demonstrates durable metric notes and soft deletion through guarded write and destructive operations.

How it works

Tool definitions can be declared in YAML rather than implemented in Python, allowing teams to describe operations over their own Postgres or HTTP APIs. Each operation declares an effect: read, write, or destructive. Policy controls are applied independently of the model’s prompt: writes are disabled by default, destructive actions require a human-held approval token, and mutating operations support dry runs.

Every call is recorded in the audit trail, including denied calls and their reasons. The policy view publishes the active capability envelope. The server also registers KPI resources for the seeded domains and a monthly_executive_briefing prompt. A REST facade exposes the same tools, policy, audit, and routing views for dashboard or ordinary HTTP callers.

Forecasting uses trend analysis and linear projection over historical monthly data, with Monte Carlo confidence intervals. Anomaly detection supports Z-score and IQR methods. Company health combines indicators such as growth, margins, cash runway, and operational efficiency into a 0–100 score with qualitative categories.

Setup and configuration

Install the PyPI package with pip install agentkit-mcp, then start it with agentkit-mcp. The package can also be launched for an MCP client through uvx agentkit-mcp. For a source checkout, create a virtual environment, install requirements.txt, configure .env, and run python mcp_server.py.

Claude Desktop configurations must set MCP_TRANSPORT=stdio so the server communicates over the spawned process pipes. Without that setting, the script defaults to SSE on a network port. POSTGRES_URL points the server at the governed Postgres store. MCP_AUTH_TOKEN applies to the SSE or network path; local stdio uses the operating-system process boundary instead.

Set AGENTKIT_ALLOW_WRITES=true only when write operations are intended. Destructive annotation retraction additionally requires AGENTKIT_APPROVAL_TOKEN. LOG_LEVEL=DEBUG enables verbose diagnostics. Anonymous startup telemetry can be disabled with TELEMETRY_OPT_OUT=true or DO_NOT_TRACK=1, and TELEMETRY_URL can redirect it to another collector.

The optional LangGraph workflow and example integrations use LiteLLM model routing. LLM_REASONING, LLM_DEFAULT, LLM_JUDGE, and LLM_LOCAL select model routes, while INFERENCE_MODE=local enables a local or self-hosted route such as Ollama.

Tools and capabilities

  • list_available_metrics exposes supported domains, metrics, and historical periods for discovery.
  • query_kpis retrieves structured KPI time series from the governed store.
  • get_company_health returns a composite score, category, and component diagnostics.
  • detect_kpi_anomalies identifies spikes and deviations using Z-score or IQR analysis.
  • forecast_metric projects future KPI values with upper and lower confidence bounds.
  • get_executive_summary combines health, selected metrics, and anomalies into one briefing.
  • YAML packs can add read, write, or destructive tools without forking the server.

Limitations and notes

The six core tools are read-oriented; additional write behavior comes from loaded packs such as annotations. Writes remain disabled by default, and destructive operations are not authorized by prompts alone. The bundled KPI domains and periods come from the server’s seeded data, while custom deployments can extend the available tools and resources through configuration and code. The optional demos and research scripts require dependencies beyond the server-only installation.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agentkit

agentkit is an MCP server that connects agents to a governed Postgres KPI store and declarative Postgres or HTTP tools. Its main tools query KPIs, calculate company health, detect anomalies, forecast metrics, list available data, and generate executive summaries, with policy controls and audit records for each call.

Install it with `pip install agentkit-mcp`, then start it with `agentkit-mcp`. You can also run the published package through `uvx agentkit-mcp`, or install the repository requirements and launch `python mcp_server.py` from a source checkout.

Yes, agentkit works with Cursor through MCP. The server supports standard stdio and SSE operation; configure the client with the server command and set the required connection and transport variables for the mode you use.

agentkit disables writes by default and assigns every tool a declared read, write, or destructive effect. Mutating tools support dry runs, destructive actions require a human-held `AGENTKIT_APPROVAL_TOKEN`, and both permitted and denied calls are captured in the audit trail.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgentkit AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agentkit?style=directory)](https://allmcps.com/mcp/agentkit)
HTML Embed
<a href="https://allmcps.com/mcp/agentkit"><img src="https://allmcps.com/api/badge/agentkit?style=directory" alt="Agentkit on AllMCPs" /></a>