SuperAPIAI Directory

bantamkit

github.com · AI coding

bantamkit is an MCP server that provides persistent memory for coding agents, supporting stdio MCP clients such as Claude Code, Claude Desktop, Cursor, and VS Code Copilot. It lets agents save information worth keeping during a session (such as user preferences, decisions, and effective fixes) and recall it in the next session, avoiding repeated questions. After installing once via npm or PyPI, it runs offline. Memories are stored as Markdown files in the .bantamkit/memory directory, with deduplication and a byte budget, and it offers layered reads (project store, config-authorized stores, user profile store). It also provides tools such as JSON Schema validation, a token ledger, skill catalog auditing, and multi-step task planning, for a total of 16 tools. It also provides a Python library for improving the agent performance of small models (roughly 1B–8B).

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

bantamkit is an MCP server that provides persistent memory for coding agents, designed to let agents remember important information across sessions, such as preferences stated by the user, decisions made, and effective fixes, so that in the next session they can recall it directly instead of asking the user again. It is compatible with Claude Code, Claude Desktop, Cursor, GitHub Copilot in VS Code, and any stdio MCP client. After installing once, it runs offline.

Key capabilities:

  • Persistent memory: facts are stored as plain Markdown files under .bantamkit/memory, automatically deduplicated and subject to a byte budget. memory_save and memory_recall handle saving and recall, while memory_compact and memory_dream are used to organize the store.
  • Layered reads: recall reads the project store, stores authorized in .bantamkit/config.yaml, and the user profile store ~/.bantamkit/memory; saves are written to the project store.
  • One-command install: the --install command writes configuration entries for Claude Code, Claude Desktop, Cursor, or VS Code Copilot, backs up files before editing, and does not prompt interactively.
  • Offline operation: both installation methods (npm or PyPI) record the server by absolute path, so subsequent startups need no network or shell-dependent PATH.
  • Claude Code hooks (optional): --install-hooks can show the memory index before each new session, display matching facts on each prompt, and remind you to save when nothing has been saved during a long session.
  • More tools: including JSON Schema validation, a token ledger read from host transcripts, skill catalog auditing, and shift tools for planning and handing off multi-step work, for a total of 16 tools.
  • Dual-runtime shared storage: the pure Node implementation on npm and the Python implementation on PyPI read and write the same files, and a conformance test suite compares every interface of the two runtimes. The core logic is written once in TypeScript, and the Python module is generated by the Rust compiler tools/ts2py and committed, so from PyPI or npm Installation requires no Rust.
  • Python library: pip install bantamkit can improve the agent performance of small models (about 1B–8B, any OpenAI-compatible endpoint) by absorbing malformed output, unreviewed answers, forgotten context, and runaway loops in code, and comes with an evaluation suite to measure the improvement.

How to use:

  • Install the MCP server: the recommended approach is npm install --prefix ~/.bantamkit/mcp for a one-time install that runs offline; or use npx to run on each startup (requires network); or use Python's pip install "bantamkit[mcp]" to install into a virtual environment and then run bantamkit-mcp --install claude.
  • Connect a host: run --install <host> (claude, claude-desktop, copilot, cursor) to write the configuration entry, with backup support and --force to overwrite.
  • Configuration: pass flags via args in the entry, and set environment variables via the env block.
  • Update: --update checks the package index and updates the installation; this is the only network access, and it occurs only when entered manually.

Use cases:

  • Coding agents that need to remember user preferences, project decisions, and effective fixes across sessions.
  • Developers using tools such as Claude Code, Cursor, and VS Code Copilot.
  • Researchers or developers who want to improve the stability and performance of small-model agents.

Limitations:

  • The host must support the MCP protocol.
  • The npx per-startup approach requires network and will fail when offline.
  • Some features (such as hooks) apply only to specific hosts.
  • The documentation does not provide pricing, cost, or specific performance data, so none is provided for now.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools