AgentMesh MCP
Enables CrewAI agents to participate in a coordinated multi-agent swarm by providing atomic task claiming, task lifecycle management, and board status observability to prevent collisions and duplicated work.
Enables LangGraph agents to coordinate within a multi-agent swarm through atomic task claiming, state transitions, and real-time queue metrics, avoiding race conditions and duplicated effort.
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., "@AgentMesh MCP claim the highest priority pending task for agent-7"
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.
AgentMesh MCP (Lite Edition)
AgentMesh MCP is a resilient Model Context Protocol (MCP) server designed to coordinate multi-agent AI swarms (Claude, Cursor, CrewAI, LangGraph, custom subagents) without cloud deadlocks, race conditions, or duplicated work.
Powered by a high-throughput, zero-dependency SQLite WAL engine, AgentMesh provides mutual-exclusion task claiming and atomic state transitions so multiple autonomous agents can collaborate seamlessly in parallel.
๐ฏ The Problem
When running multiple AI agents in parallel:
Collision & Race Conditions: Multiple agents attempt to tackle the same problem or modify the same files simultaneously, destroying each other's work.
Zombie Locks: If an agent times out or crashes during an API call, tasks get stuck indefinitely.
Cloud Overhead: Setting up Redis, RabbitMQ, or Celery just to let 3 local AI agents work together is overkill and introduces privacy leakage.
AgentMesh solves this locally and deterministically with a lightweight, standardized MCP server.
Related MCP server: coordinaut
โจ Features (Lite Edition)
๐ Atomic Mutual Exclusion: Guaranteed single-claim mechanics using SQLite WAL
BEGIN IMMEDIATEtransactions.โก Zero External Dependencies: Built with pure Python 3 standard library (
sqlite3,json,uuid).๐ ๏ธ Full MCP Compliance: Implements MCP standard (
tools/list,tools/call,initialize,ping) overstdio.๐ Real-time Observability: CLI and MCP tools to inspect swarm board status, active worker counts, and queue depth.
๐ Quickstart
1. Installation
git clone https://github.com/johannschiffer/agentmesh-mcp.git
cd agentmesh-mcp
pip install -e .2. Configure in Claude Desktop or Cursor
Add to your claude_desktop_config.json or Cursor MCP settings:
{
"mcpServers": {
"agentmesh": {
"command": "python",
"args": ["-m", "agentmesh.cli", "run"]
}
}
}3. CLI Inspection
Check the current state of your swarm at any time:
# View board metrics
agentmesh status
# List pending or active tasks
agentmesh list --status pending๐ ๏ธ MCP Tools Reference
Tool | Parameters | Description |
|
| Adds a task to the queue in |
|
| Atomically claims the highest priority pending task |
|
| Marks task as completed with output payload |
|
| Marks task as failed with error details |
|
| Retrieves complete task state and payload |
|
| Queries tasks with status and worker filters |
| none | Returns high-level metrics of the entire swarm |
๐ Upgrade to AgentMesh Pro
Need enterprise capabilities for production autonomous swarms?
The AgentMesh Pro Edition adds:
โ๏ธ DAG Dependency Engine: Complex multi-step task graphs (
depends_on). Subtasks stay locked until parents pass. Cycle-detection prevents infinite deadlock loops.๐ Heartbeat & Zombie Lease Reclaimer: Automatic detection of crashed or frozen agents. Automatically revokes expired leases back to the pool.
๐ง ACID Shared Memory Blackboard: Namespaced key-value store with TTL for inter-agent context and artifact sharing.
๐ Swarm Cost & Token Ledger: Telemetry tracking execution time, token burn, and API costs per agent.
๐ณ Production Docker & Compose: Ready-to-ship container configurations.
๐งช Comprehensive Pytest Suite: 100% test coverage ready for CI/CD.
๐ Get AgentMesh Pro on Gumroad ($14.99 USD)
๐ License
MIT ยฉ 2026 Johann Schiffer
Available Tools
7 toolsclaim_taskB
Atomically claim the highest priority pending task for this agent.
Inputs: agent_id (required).
complete_taskA
Mark an in_progress task as completed with output results.
Inputs: task_id (required), agent_id (required), result.
create_taskC
Create a new task in pending state on the swarm task board.
Inputs: title (required), metadata, priority, description.
fail_taskB
Mark an in_progress task as failed with an error description.
Inputs: task_id (required), agent_id (required), error.
get_board_statusA
Get real-time summary metrics of all swarm tasks and active agents.
Inputs: no named parameters.
get_taskA
Retrieve complete task details, status, and results by task ID.
Inputs: task_id (required).
list_tasksB
Query tasks from the board with optional filtering by status and agent.
Inputs: limit, status, agent_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 7 tools
Each tool maps to a distinct action in the task lifecycle: create, claim, complete, fail, get, list, and board status. The boundaries between query tools (get_task for a single ID vs list_tasks for filtered sets) and mutation tools are clear, so an agent can select confidently.
Every tool follows a consistent verb_noun snake_case pattern (create_task, claim_task, complete_task, fail_task, get_task, list_tasks, get_board_status). No deviations in style or casing.
Seven tools is well-scoped for a swarm task board, with each tool earning its place across create/read/state-transition operations. No redundancy or filler.
The core task lifecycle (create, claim, complete, fail) plus read/query operations is fully covered. Minor gaps exist, such as releasing/unclaiming a task or updating task fields (priority, metadata), but agents can work around these.
Related MCP Connectors
Durable agent-to-agent handoffs and shared scratchpad for multi-agent workflows.
Coordinate multiple AI agents over MCP: atomic claims, leases, shared ledger, handoffs, tasks.
Task management for teams building with AI agents. Agents claim tasks and report progress.
Shared task layer for AI agents: tasks, handoffs and decisions that persist across tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn atomic key-value store for AI agent coordination, ensuring agents always work with the latest state.5MIT
- AlicenseNot gradedqualityCmaintenanceCoordinates parallel AI coding agents by providing task ownership, scoped file locks, handoffs, and verification workflows.MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to decompose a goal into a dependency-aware task tree, atomically claim and update tasks across parallel subagents in dependency waves, and coordinate through a shared progress board with paged notes and crash-safe, lock-protected persistence.MIT
- AlicenseNot gradedqualityBmaintenanceLocal OS for your AI Agents fleets. โโโโโโ- Enables AI agents to coordinate through a durable local board with shared state, ticket lifecycle, evidence-based approvals, and journal-woken handoffs.2Apache 2.0