Agent Context MCP
This server provides shared project memory and task-handoff coordination for MCP-compatible coding agents.
Create and list projects, and retrieve a bounded project context overview.
Record progress, decisions, handoffs, blockers, tests, and notes with files, details, and git refs.
Read updates oldest-first with cursors and search literal text across summaries, details, and files.
Create and list tasks, then atomically claim or renew tasks with expiring leases and version checks.
Update task status (pending, in_progress, blocked, completed) with summaries/evidence and safe retries via request IDs.
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., "@Agent Context MCP Read the latest handoff and claim the next open task for my session"
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.
Shared project memory and task handoffs for MCP-compatible coding agents. One agent records the work; the next reads the context before continuing. Run it on your computer or a team server, with a React dashboard and local SQLite storage.
Website · npm · Documentation · GitHub · Contributing
Early release: 0.4.0 · Node.js 24+ and npm · MIT license
The published package is @suyashb/agent-context. The executable is
agent-context. No Python, cloud model or model API key is required by the
server; your coding agent may have its own requirements.
Get started
Install from the public npm package and start the service:
npm install -g @suyashb/agent-context
agent-contextKeep that terminal open. In a second terminal, retrieve the access token:
agent-context tokenOpen http://127.0.0.1:8765/dashboard, paste the token, create a project and open Connect agents. The token stays in page memory, so enter it again after reloading. Stop the service with Ctrl+C.
To pin the current release, install @suyashb/agent-context@0.4.0.
The unscoped package agent-context-mcp belongs to another maintainer.
Install a downloaded package
Download suyashb-agent-context-0.4.0.tgz from the
official website. From the folder containing
that file:
npm install -g ./suyashb-agent-context-0.4.0.tgz
agent-contextThen retrieve the token and open the dashboard as above. An ENOENT error means
npm cannot find the archive at the path supplied.
Run from source
From the repository root:
npm ci
npm run build:runtime
npm start -- --db ./data/dev.sqlite3In a second terminal, from the same directory:
node bin/agent-context.mjs token --db ./data/dev.sqlite3This builds the MCP service and local React dashboard without a global install. To create an installable archive from your checkout:
npm pack --ignore-scripts --pack-destination dist/npm
npm install -g ./dist/npm/suyashb-agent-context-0.4.0.tgzA locally packed archive can contain changes beyond the published release. Website downloads preserve the exact published npm archive; changing the repository does not replace version 0.4.0 on npm.
Related MCP server: Project Relay
Connect your agents
Use an MCP-compatible host over stdio or Streamable HTTP. Configuration examples cover Claude Code, Codex, Cursor, VS Code/Copilot, Gemini CLI and generic MCP clients. This does not mean every client version has been tested.
For agents on the same computer, generate settings with the same absolute database path used by your dashboard:
agent-context config --client generic --db /absolute/path/to/shared/context.sqlite3Use --client cursor, --client vscode or --client gemini for those wrappers.
Merge the generated entry into existing settings; the command does not edit
files. Enable the tools and start a fresh agent session. See
client setup for client-specific instructions.
Each stdio client starts its own agent-context stdio process against the same
local database. It does not need an HTTP token or a separate dashboard process.
Remote clients connect to the shared host’s /mcp endpoint with its token.
Leave a useful handoff
Use the same project ID across agents and a unique agent ID per session. Add these instructions to the instruction file your client reads, preserving its existing content:
Use agent-context MCP for project ID "my-project".
Use a unique agent_id per session.
Read get_context and list_tasks before editing; create the project if needed.
Claim a task and renew its lease before expiry.
Record progress, decisions, changed files, and exact test results.
Before stopping, record a handoff and complete or release the task.Check the connection by asking one agent to record a test handoff and another to read it from the same project. Agents must inspect the repository and write their findings. The server does not capture conversations or scan code automatically. A useful record includes what changed, what was verified and what the next agent should do.
What it stores
Persistent project context, decisions, test reports and handoffs.
Task claims with expiring leases, optimistic versions and safe retry IDs.
Paginated history with literal search.
Project, task, agent and activity records visible in the React dashboard.
Consistent backups and database integrity checks.
Product illustration with example data. This is not a screenshot of a live instance or the public website.
Work with your team
Run one shared server with a database on its local disk. Teammates keep their own agents and models and connect using Streamable HTTP.
Connection | Suitable for |
Same Wi-Fi / LAN | One private office or home network |
Private VPN | Teammates in different locations |
SSH tunnel | A host the team can already reach over SSH |
HTTPS server | An always-on team service |
The team guide covers commands, allowlists, firewall settings and token setup. Plain LAN HTTP is unencrypted; use a VPN, SSH tunnel or HTTPS for routine access. Keep SQLite on a local disk, never on a network drive. Teammates use the shared host’s token rather than a token from their own server.
Current limits
Every token holder can read and write every project in an instance. Agent IDs are self-reported, and task claims do not lock source files. There are no individual accounts, OAuth, project permissions or automatic conversation capture. Use separate instances for unrelated trust groups.
Read SECURITY.md before exposing a shared instance. Local models also need reliable tool calling and an MCP-capable host; see compatibility.
Documentation
Task | Guide |
Find a starting point | |
Connect an editor or agent | |
Check systems and local models | |
Connect teammates | |
Configure, containerize, back up or upgrade | |
Look up commands and MCP tools | |
Fix installation or connection errors | |
Understand the implementation | |
Work on the product website | |
Publish a release or deploy |
Public website and local service
https://agentcontext.suyashb.me hosts the product website, documentation and downloads. Users run the MCP service and dashboard locally or on a team server. Vercel hosts the public website; it does not run the persistent SQLite service.
The website uses Next.js App Router, Tailwind CSS and Framer Motion. Landing
copy, the example handoff and roadmap items live in site/src/content.js;
app/identity.css defines its restrained dark/light design. See
website development for contributor preview instructions.
Build | Purpose |
| Bundle the MCP service and local React dashboard into |
| Build release artifacts and the public website; check docs, pages and downloads |
For Vercel, import the repository root (./), use the Next.js preset,
Node.js 24.x, build command npm run build, and Output Directory
.next, as configured in vercel.json. The Next.js adapter reads its
manifests from .next/; out/ remains the static export used for local checks.
Setting Vercel’s Output Directory to out causes NEXT_NO_ROUTES_MANIFEST.
Repository and website updates do not change the already published npm package. A new package release requires a new version. Check the intended commit’s CI, live downloads and npm publication using the release guide before announcing a launch.
Contribute or get help
Use GitHub issues for reproducible bugs and feature proposals. Read CONTRIBUTING.md, community expectations and the roadmap. Report vulnerabilities privately through SECURITY.md.
The earlier Python prototype is historical. Its agent-context-mcp executable
is distinct from this release’s agent-context. Keep an explicit --db when
migrating an existing database; see the
legacy guide.
MIT license · Maintained by Suyash Balasubramaniam
Available Tools
10 toolsclaim_taskB
Atomically claim or renew a task for 30–86400 seconds. Read its latest version first.
Inputs: task_id (required), agent_id (required), project_id (required), expected_version (required), +1 more.
create_projectB
Create a project with a stable lowercase slug; identical retries are safe.
Inputs: name (required), project_id (required), description.
create_taskB
Create a pending task. Use request_id for safe retries; check list_tasks for existing work.
Inputs: title (required), agent_id (required), project_id (required), files, +2 more.
get_contextB
Start here: bounded overview of recent work, decisions, handoffs and open tasks.
Inputs: project_id (required), limit.
get_updatesB
Read events oldest first after a cursor. Save next_cursor; continue while has_more.
Inputs: project_id (required), limit, after_event_id.
list_projectsC
Find shared projects. Follow next_offset until null for all projects.
Inputs: limit, offset.
list_tasksC
Read task versions and owners. status: all/pending/in_progress/blocked/completed.
Inputs: project_id (required), limit, offset, status.
record_updateA
Append progress, decision, handoff, blocker, test or note. Use request_id for safe retries.
Put rationale, tests and next steps in details; reference relative files and a commit/branch. This records what you report; it does not inspect code or execute tests.
Inputs: kind (required), summary (required), agent_id (required), project_id (required), +5 more.
search_contextC
Search literal text in summaries, details and files. Follow next_before_event_id.
Inputs: query (required), project_id (required), limit, before_event_id.
update_taskA
Update your live claim: pending releases, completed finishes, blocked retains the lease.
All changes require the latest version. in_progress/blocked do not renew the lease. Put completion evidence, blockers or a handoff explanation in summary.
Inputs: status (required), summary (required), task_id (required), agent_id (required), +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
The two resources (projects/events vs. tasks) are cleanly separated, and record_update vs. update_task are distinguishable by their descriptions (append-only event log vs. live task lease). The main soft spot is get_context vs. get_updates vs. search_context, which all return context-ish data and rely on prose to differentiate them.
Every tool follows a consistent snake_case verb_noun pattern (create_project, list_projects, get_context, record_update, claim_task, update_task), with parallel create/list pairs for both resources. The verbs are semantically appropriate rather than mechanically duplicated, which is a plus.
Ten tools is well within the sweet spot and each maps to a distinct operation (two project ops, three read/search ops, one record op, four task ops). Nothing feels redundant or missing at the count level.
The core lifecycle is covered: project creation/listing, an event log with cursor-based reads and search, and a full task flow from create through claim to completion. Gaps exist — no get_project/get_task for a single record and no archive/delete or explicit lease-release operation — but agents can work around these via list_tasks/list_projects and update_task.
Maintenance
Related MCP Connectors
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Project management shared by people and AI agents, with persistent project state through MCP.
Shared, scoped, reviewable team memory for AI coding agents.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceA local-first MCP server and CLI that gives coding agents structured project memory, task contracts, context packs, backlog workflows, and verification evidence, storing data in reviewable Markdown/YAML with a fast SQLite index.4-
- AlicenseNot gradedqualityBmaintenanceEnables coding agents in different editors and MCP clients to share messages, project context, notes, task ownership, handoffs, and advisory file claims through a local SQLite-backed coordination server. Supports MCP stdio, MCP Streamable HTTP, a JSON HTTP API, and a local CLI for multi-project agent collaboration.MIT
- AlicenseBqualityBmaintenanceLets multiple AI agents and parallel coding sessions share one memory and task ledger, so they can claim work instead of duplicating it, resume each other's handoffs and reasoning, and use credentials without ever seeing the keys. Connects assistants such as Claude Code, Codex, Cursor, Gemini, ChatGPT and custom agents over MCP, backed by a single local SQLite file or a self-hosted Postgres hub.412MIT
- AlicenseAqualityBmaintenanceLocal-first task and progress database shared by developers and coding agents. Agents claim ready tasks over MCP, record progress and handoffs,and submit commits for independent review; developers confirm, prioritize, and approve work in a local web dashboard. Data stays in a SQLite file inside your project, with no cloud service or account required.1529 npm13Apache 2.0