MCP Agent Toolkit
The MCP Agent Toolkit provides three core reliability patterns for multi-agent AI systems:
Blackboard (Shared Agent State)
blackboard_write— Persist any JSON-serializable artifact (e.g., research briefs, audit reports) scoped by pipeline run and agent nameblackboard_read— Retrieve the latest artifact for a specific run, agent, and key, allowing downstream agents to access upstream outputsblackboard_list— List all artifact keys written by a specific agent in a given run
SCAR Memory (Failure Prevention)
scar_lookup— Check whether a known fix exists for a given error type and agent before retrying (e.g., look up the fix forJSONDecodeError)scar_record— Store a new failure resolution so any agent encountering the same error in the future can retrieve the fix immediately
Response Cache (LLM Cost Reduction)
cache_get— Check whether an identical LLM request (same messages + model) has already been cached, avoiding redundant API callscache_set— Store an LLM response keyed by a SHA-256 hash of the messages and model, so future identical requests are served from cache
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., "@MCP Agent ToolkitSave the final code artifact to the blackboard"
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.
MCP Agent Toolkit
An MCP (Model Context Protocol) server that exposes production agent-kernel tools — blackboard shared state, SCAR failure memory, and LLM response cache — as standard MCP tools any Claude or GPT agent can call.
For project walkthroughs, architecture flowcharts, and system context, visit the live landing page: my-portfolio-github-io-beta-five.vercel.app/projects/mcp-agent-toolkit.html
What it does
Connects the three core reliability patterns from 18 months of building production multi-agent systems into a single MCP server:
Tool Group | Tools | What it solves |
Blackboard |
| Shared agent state without direct coupling |
SCAR Memory |
| Repeated failure prevention — find the known fix before retrying |
Response Cache |
| Stop paying twice for identical LLM requests |
Related MCP server: memhippo
Part of The Machine OS
This repo is a spoke of The Machine OS: it
backs the ~~scar-memory and ~~blackboard connectors that supercharge the /debug,
/incident-response, and /agent-design skills.
Prerequisite: Node.js 22.5+ (node:sqlite is built in from 22.5; on recent versions it
runs without a flag and just prints an experimental warning to stderr, which does not affect the
stdio protocol).
Option A — install via the Machine OS plugin (recommended for Claude Code)
/plugin marketplace add shubham0086/the-machine-os
/plugin install ai-engineering-tools@machine-os
/reload-pluginsThis launches the server for you (as the agent-memory MCP server) — no manual config.
Option B — point any MCP client at it directly
Works in Claude Desktop, Cursor, Windsurf, Cline, Zed, or any mcp.json client. No clone needed;
npx fetches and runs it:
{
"mcpServers": {
"agent-memory": {
"command": "npx",
"args": ["-y", "github:shubham0086/mcp-agent-toolkit"],
"env": { "MCP_AGENT_TOOLKIT_DATA_DIR": "/abs/path/to/persist" }
}
}
}MCP_AGENT_TOOLKIT_DATA_DIR is optional but recommended under npx: it points the SQLite store
at a stable path so blackboard state and SCAR memory survive across runs (the npx package dir is
ephemeral). Omit it and storage falls back to the package's own data/ dir.
Local dev
npm install
npm start # runs the stdio server from this checkoutTool reference
Blackboard
blackboard_write(run_id, agent, key, value) — persist an artifact
blackboard_read(run_id, agent, key) — read latest artifact
blackboard_list(run_id, agent) — list all keys for an agentAgents communicate through the blackboard, never directly. The Coder writes code. The Auditor reads code. If either fails and retries, the other's work is still in SQLite.
SCAR Memory
scar_lookup(agent, error_type, context?) — retrieve known resolution
scar_record(agent, error_type, resolution, context?) — store a new resolutionWhen an agent hits JSONDecodeError and you fixed it with json_repair(), record it. Next time any agent hits the same error in the same context, scar_lookup returns the fix before the retry loop starts.
Response Cache
cache_get(messages, model) — check cache before calling LLM
cache_set(messages, model, response, provider) — store response after callSHA-256 hashes the messages + model into a cache key. Identical requests never hit the API twice.
Tests
npm test13 tests covering blackboard isolation, SCAR round-trips, and cache hit/miss behavior.
Stack
MCP SDK (
@modelcontextprotocol/sdk) — the official Anthropic MCP server librarynode:sqlite — Node.js 22 built-in synchronous SQLite, zero native compilation
stdio transport — standard MCP pattern, works with any client
Related repos
agent-scars — standalone SCAR pattern
agent-recall — solution memory
equilibrium — the AgentKernel these patterns came from
Available Tools
7 toolsblackboard_listA
List all artifact keys written by a specific agent in a run.
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | ||
| agent | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must carry the full burden. It does not disclose whether the operation is read-only, authentication requirements, rate limits, or any side effects. The description only says it lists keys, leaving the agent uninformed about behavioral traits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence of 10 words, front-loading the core purpose. Every word earns its place with no redundancy or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has 2 required params and no output schema. The description does not explain the return format (e.g., list of strings), pagination, or what constitutes an 'artifact key'. This leaves the agent guessing about the output structure, making it incomplete for effective use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and the description only maps parameters to 'agent' and 'run' but adds no further meaning like format, allowed values, or constraints. This provides minimal additional value beyond the parameter names.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool lists artifact keys, filtered by agent and run. It uses specific verb 'list' and resource 'artifact keys', distinguishing it from sibling tools like blackboard_read (reads a single key) and cache_get (different storage).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies use when you need keys from a specific agent in a run, providing clear context. However, it does not explicitly state when not to use this tool or mention alternatives like blackboard_read for reading a specific key.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
blackboard_readC
Read the latest artifact from the blackboard for a given run, agent, and key.
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | ||
| agent | Yes | ||
| key | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must disclose behavioral traits. It only says 'read', implying a read-only operation, but does not explain what happens if the key does not exist, whether the operation is idempotent, or if any side effects occur.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single sentence with no redundancy, but it could benefit from being slightly more structured (e.g., listing parameters explicitly or noting output). Still efficient and front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema and no annotations, the description is insufficient for an agent to reliably invoke the tool. It omits parameter formats, return value type, and error handling, leaving significant gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description mentions the three parameters by name but adds no further meaning beyond the parameter names. With 0% schema description coverage, details like format, constraints, or examples are entirely absent.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Read') and resource ('latest artifact from the blackboard'), and distinguishes from siblings (e.g., blackboard_list lists artifacts, blackboard_write writes). It unambiguously states what the tool does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool vs alternatives. No mention of prerequisites, when not to use it, or scenarios better suited for siblings like blackboard_list or cache_get.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
blackboard_writeB
Write an agent artifact to the shared blackboard. Use this to persist any agent output so downstream agents can read it.
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | Unique identifier for the current pipeline run. | |
| agent | Yes | Name of the agent writing the artifact (e.g. 'researcher'). | |
| key | Yes | Artifact key (e.g. 'research_brief', 'audit_report'). | |
| value | Yes | The artifact payload (any JSON-serialisable object). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must fully disclose behavioral traits. It states 'write' and 'persist', implying mutation, but lacks details on overwrite behavior, idempotency, permissions, or error states. The agent cannot infer critical behavioral aspects from this description alone.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise with two sentences, front-loaded with the verb and resource. Every word serves a purpose, and there is no superfluous information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool writes to a shared blackboard with nested objects and no output schema. The description is too brief; it lacks details on write semantics (e.g., overwrite vs. append), required prerequisites, or what happens on duplicate keys. For a mutation tool, this is incomplete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%; all four parameters have descriptions in the input schema. The description adds no additional parameter context beyond what the schema already provides, so a baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Write' and the resource 'shared blackboard'. It explains the purpose: persist agent output for downstream agents. While it doesn't explicitly distinguish from siblings like blackboard_list or cache_set, the tool name and context make the purpose clear.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides a clear usage context: use this to persist agent output so downstream agents can read it. However, it does not mention when not to use it or list alternatives (e.g., cache_set, blackboard_read), leaving the agent without guidance on tool selection in ambiguous situations.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
cache_getA
Check if an identical LLM request was already executed and cached. Returns the cached response or null.
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | The messages array that will be sent to the LLM. | |
| model | Yes | The model identifier. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries full burden. It states it checks and returns cached response or null, but does not explicitly confirm it is read-only or has no side effects. Adequate but could add 'does not modify cache'.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, 18 words, front-loaded with purpose. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple cache lookup tool with no output schema, the description covers the key behavior. Could elaborate on exact match criteria but sufficient for most agents.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% and both parameters are well-described there. The description adds no extra meaning beyond the schema, so baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool checks if an identical LLM request is cached, using specific verb+resource. It distinguishes from siblings like cache_set and blackboard tools which serve different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage before executing an LLM request to avoid duplication. It does not explicitly mention when not to use or name alternatives, but the context is clear enough.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
cache_setA
Store an LLM response in the cache. Call this after receiving a response to avoid re-paying for identical future requests.
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | ||
| model | Yes | ||
| response | Yes | The full LLM response object to cache. | |
| provider | No | Provider name (anthropic, openai, etc.). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided. Description only says 'store in cache' with no details on overwriting, key generation, idempotency, or caching policy. Agent lacks critical behavioral info.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, front-loaded with action and use case. No wasted words, though could briefly mention key generation without bloat.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Adequate for a simple cache write with no output schema, but missing overwrite behavior and key formation details that would help agent avoid unintended overwrites.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 50% with only 'response' and 'provider' described. The description adds no extra meaning to 'messages' or 'model' beyond implied role. Agent cannot infer how keys are formed.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states 'Store an LLM response in the cache' with a specific verb and resource. Distinguishes from sibling cache_get (retrieve) by context.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly says 'Call this after receiving a response to avoid re-paying for identical future requests', providing clear usage context. Doesn't mention when not to use, but siblings are distinct enough.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
scar_lookupA
Look up whether a failure pattern has been seen and resolved before. Returns the resolution if found, null otherwise.
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent name where the failure occurred. | |
| error_type | Yes | Error class or type string (e.g. 'JSONDecodeError', 'RateLimitError'). | |
| context | No | Brief context snippet (first 200 chars of the failed prompt or task). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must disclose behavior. It indicates a read operation ('look up') and the return type, but does not state that it is read-only, nor does it mention any side effects or prerequisites.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, front-loaded with the core purpose. Every word adds value with no waste.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simple nature of the tool (3 parameters, no output schema), the description adequately covers the purpose and return value. It could mention that context is optional, but the schema already indicates that.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The tool description does not add additional meaning beyond what the schema already provides for the parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Look up'), the resource ('failure pattern'), and the outcome ('returns the resolution if found, null otherwise'). It effectively distinguishes from siblings like scar_record which records a failure.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies the tool is for checking previously resolved failures but does not explicitly state when to use it versus scar_record or other tools. No exclusions or alternatives are mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
scar_recordC
Record a new failure resolution in SCAR memory so it can be retrieved next time.
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| error_type | Yes | ||
| context | No | ||
| resolution | Yes | What fixed the failure (prompt change, retry strategy, fallback used, etc.). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries full burden for behavioral traits. It does not disclose what happens on duplicate entries, whether it overwrites, authorization needs, or side effects. The minimal description ('record so it can be retrieved') lacks transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise (one sentence) with no wasted words, but it does not fully earn its place as it under-specifies behavior and parameters. Could be more informative while remaining concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with 4 parameters, no output schema, and no annotations, the description is incomplete. It fails to explain return values, behavior on errors or duplicates, or any limitations. The agent lacks confidence to use it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is low (25%). Only 'resolution' has a description. The tool description provides no additional parameter meaning beyond the schema, leaving agents to infer the format and semantics of 'agent', 'error_type', and 'context'.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Record') and resource ('SCAR memory') to clearly state the tool's action. It implies storing failure resolutions for later retrieval, which distinguishes it from sibling tools like scar_lookup which retrieves. However, it does not explicitly differentiate from siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives (e.g., scar_lookup for retrieval). No prerequisites, context, or when-not-to-use conditions are mentioned. The usage is only implied.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
7 tool updates
v1.0.0- First observed
blackboard_list - First observed
blackboard_read - First observed
blackboard_write - First observed
cache_get - First observed
cache_set - First observed
scar_lookup - First observed
scar_record
TDQS
Scored across 7 tools
Each tool has a distinct purpose within clear subsystems (blackboard, cache, scar). There is no overlap between the three groups, and within each group, operations are differentiated by action (list/read/write, get/set, lookup/record).
All tool names follow a consistent pattern: a lowercase prefix (blackboard_, cache_, scar_) followed by a verb in snake_case. This makes it easy to infer the domain and action for each tool.
With 7 tools, the set is well-scoped for an agent coordination toolkit. Each tool serves a distinct, necessary function, and the count is neither too sparse nor overwhelming.
The toolkit covers the core operations for each subsystem: read/write/list for blackboard, get/set for cache, lookup/record for scar. Minor gaps exist, such as missing delete operations, but the essential lifecycle for agent coordination is present.
Maintenance
Related MCP Connectors
Hosted self-curating shared memory that keeps your agents working like a high-performing team
Durable agent-to-agent handoffs and shared scratchpad for multi-agent workflows.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceGives AI agents persistent memory, handoffs, and shared context across sessions, enabling seamless continuity and multi-agent collaboration.14 npm69-
- AlicenseNot gradedqualityAmaintenanceProvides persistent, shared memory for AI agents by capturing conversations verbatim, distilling facts and summaries, and enabling retrieval through search, timeline, details, and explicit remember tools.MIT

whimsicality-mcpofficial
AlicenseBqualityBmaintenanceProvides persistent memory for AI agents, including context storage, facts, plans, RAG search, code snippets, and conversation compaction, enabling state to survive across sessions and processes.1420 npm2MIT- AlicenseAqualityBmaintenanceEnables AI agents to maintain long-term, cross-session memory by extracting facts, reconciling state conflicts, and retrieving relevant memories via vector search.4MIT