Hatchet MCP
Enables running durable, traceable AI agents via LangGraph through a universal MCP interface, integrating with Hatchet for orchestration, logging, and retries. Provides tools for knowledge management (ingestion, RAG) and Kubernetes operations (diagnosis, auto-fix).
README
Personal Agentic AI - Hatchet MCP
This is my personal local AI agent setup that can run durable and fully traceable agents (with LangGraph), utilizing a universal MCP interface. The MCP directly talks to a Hatchet server, which then triggers my custom tasks/workflows, making it trivial to hook up any local LLM chat interface (LMStudio, OpenCode, Claude Code, Open WebUI, etc) and run custom AI workflows. This has the added benefit of full logging, custom loops, orchestration, retries, tracing, and all other goodies provided by Hatchet.
Quick start
uv sync # install deps (this is only required for local dev)
just docker-start # start Hatchet orchestration server in Docker (localhost:8888)
just worker # start local worker (runs LangGraph locally, no Docker)
just dev # run LangGraph Studio to visualize and debug graphs
Currently available agents
| Agent | How to trigger |
|---|---|
| Knowledge Management | ingests files, extracts text, vector embeddings, deep inspection with LLM, RAG retrieval, file indexing |
| K8s DevOps Troubleshooter | full LangGraph agent loop: check cluster, diagnose with LLM, auto-fix via kubectl, verify, self-correct |
| K8s Direct Tools | individual k8s ops (check_pods, get_logs, describe_pod, run_kubectl, etc.) routed through Hatchet |
Architecture
LLM client (opencode, claude, etc.)
│
├── MCP Server (kb_server.py) ◄── stdio
│ ├── ingest_document ──▶ event push to Worker
│ ├── search, get_document
│ ├── list_documents, search_documents
│ └── delete_document
│
└── MCP Server (k8s_server.py) ◄── stdio
├── check_pods, get_logs, describe_pod
├── get_events, debug_pod, run_kubectl
├── get_deployments, get_statefulsets, get_daemonsets
├── get_services, get_ingresses, get_configmaps
├── get_secrets, exec_in_pod
└── run_devops_agent ──▶ event push to Worker
┌──────────────────────────────┐
│ Hatchet Worker │
│ ├─ knowledge_ingestion │
│ ├─ k8s_devops │
│ └─ k8s_tool │
│ All runs visible in dashboard │
└──────────────────────────────┘
MCP config
Register the servers in your LLM client:
{
"mcpServers": {
"knowledge-base": {
"command": "uv",
"args": ["run", "python", "src/mcp/kb_server.py"]
},
"k8s-devops": {
"command": "uv",
"args": ["run", "python", "src/mcp/k8s_server.py"]
}
}
}
Adding agents and MCP tools
- Create
src/langgraph/agents/<name>.pywithStateGraph(...)and agraphvariable - Create
src/hatchet_worker/workflows/<name>.py— wraps the graph in a Hatchet task - Register it in
src/hatchet_worker/worker.pywith anon_events=[...]trigger - (Optional) Create
src/mcp/<name>_server.pywithFastMCPand@server.tool()functions
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
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.