CCM
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Skill index
  • MCP index
  • Marketplace index
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic
alfredoizdev avatar

Contextforge Mcp

alfredoizdev/contextforge-mcp
authSTDIOregistry active
Summary

ContextForge gives Claude, Cursor, and GitHub Copilot persistent memory across sessions through a hosted API. Install the npm package, drop your API key into your editor's MCP config, then run init to generate the right instruction files. Your AI can save architecture decisions, query past context semantically, track issues, and sync GitHub commits and PRs automatically. Everything lives in spaces and projects you can share with your team. The MCP exposes 30+ tools for ingesting knowledge, searching memory, managing tasks, and exporting snapshots, but you mostly just talk naturally and let the AI pick the right calls. Free tier available, no local database required.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Lid closed, agents working
Lid closed, agents working
Keeps your Mac awake while Claude Code, Codex or Cursor works. Lets it sleep when they are done.
Try free for 7 days →
Block distraction from your iPhone for freeBlock distraction from your iPhone for free
Block distraction from your iPhone for free
Block distracting apps from your iPhone permanently without a 3rd party app. Free and open source.
Block now (100% free) →
Granola, the best AI meeting recorder
Granola, the best AI meeting recorder
Notes, actions and memory. Without a meeting bot. First month 100% off.
Download for free →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
Open Steps
Open Steps
Free an open-source skills that make AI coding agents easier to understand, verify, and control.
Download for free →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Agent, connect blockchain
Agent, connect blockchain
Connect your Claude agent to live crypto prices and trading routes via 1inch
Get the MCP →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Lid closed, agents working
Lid closed, agents working
Keeps your Mac awake while Claude Code, Codex or Cursor works. Lets it sleep when they are done.
Try free for 7 days →
Block distraction from your iPhone for freeBlock distraction from your iPhone for free
Block distraction from your iPhone for free
Block distracting apps from your iPhone permanently without a 3rd party app. Free and open source.
Block now (100% free) →
Granola, the best AI meeting recorder
Granola, the best AI meeting recorder
Notes, actions and memory. Without a meeting bot. First month 100% off.
Download for free →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
Open Steps
Open Steps
Free an open-source skills that make AI coding agents easier to understand, verify, and control.
Download for free →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Agent, connect blockchain
Agent, connect blockchain
Connect your Claude agent to live crypto prices and trading routes via 1inch
Get the MCP →

ContextForge MCP — Persistent Memory for Claude, Cursor & Copilot

npm version License: MIT Node.js Glama MCP

Give Claude Code, Cursor, and GitHub Copilot persistent memory across sessions via the Model Context Protocol (MCP). Stop re-explaining your project every time.

ContextForge MCP is an open-source MCP server that connects your AI coding assistants to long-term, searchable memory. Decisions, architecture notes, debugging context, and project knowledge stay available across every session — across every tool that supports MCP.

  • 🧠 Persistent memory — your AI remembers everything across sessions, days, and weeks
  • 🔍 Semantic search — find knowledge by meaning, not keywords
  • 🔗 One memory, every tool — Claude Code, Cursor, Copilot, Claude Desktop, Windsurf
  • 🐙 Git integration — sync commits and PRs automatically
  • ✅ Task tracking — issues, assignments, and project status
  • 👥 Team collaboration — share projects and memory with your team
  • 🆓 Free tier — get started without a credit card

[!NOTE] Works automatically, no config needed (v0.5.1+). On connect, the server sends startup instructions to your AI client. Clients that honor them (Claude Desktop, Claude Code) load your project memory at the start of every session and save new decisions proactively — without you editing any settings. Running init (Step 4) is now a reinforcement, not a requirement, and still helps on clients that don't yet honor server instructions (e.g. Cursor).


Quick Start

1. Install

No install step needed — the setup below runs the server via npx -y contextforge-mcp, which fetches it on demand and keeps it up to date.

Prefer a global install for slightly faster cold starts? npm install -g contextforge-mcp is optional; if you do it, you can drop the npx -y prefix from the commands below.

2. Get your API key

  1. Go to contextforge.dev
  2. Sign up (free tier available)
  3. Settings → API Keys → Generate API Key
  4. Copy your key (starts with cf_)

3. Connect to your AI tool

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "contextforge": {
      "command": "npx",
      "args": ["-y", "contextforge-mcp"],
      "env": {
        "CONTEXTFORGE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Restart Claude Desktop.

Claude Code (CLI)
claude mcp add contextforge -s user \
  -e CONTEXTFORGE_API_KEY=your-api-key-here \
  -- npx -y contextforge-mcp

Restart Claude Code and run /mcp to verify it's connected.

Cursor

Add to your Cursor MCP settings:

{
  "mcpServers": {
    "contextforge": {
      "command": "npx",
      "args": ["-y", "contextforge-mcp"],
      "env": {
        "CONTEXTFORGE_API_KEY": "your-api-key-here"
      }
    }
  }
}
GitHub Copilot (VS Code)

Add to your Copilot MCP config:

{
  "servers": {
    "contextforge": {
      "command": "npx",
      "args": ["-y", "contextforge-mcp"],
      "env": {
        "CONTEXTFORGE_API_KEY": "your-api-key-here"
      }
    }
  }
}

4. Initialize your project (recommended)

With v0.5.1+ the server auto-loads memory on supporting clients (see the note at the top), so this step is optional but recommended: it reinforces the behavior, covers clients that don't honor server instructions, and fully overrides the built-in file-based memory.

Set up your project so your AI editor always prefers ContextForge memory:

npx contextforge-mcp init

By default, init auto-detects which editor your project uses and writes three rule sections and two hooks:

  • Memory rules — route memory questions to ContextForge instead of the built-in file memory
  • Session Presence rules — make parallel sessions check for each other at conversation start and before big changes
  • Startup Context rules — load a short project summary (overview, open tasks, live sessions) from ContextForge at the start of every conversation
  • Post-compaction recall hook (Claude Code only) — a SessionStart hook with matcher compact in .claude/settings.json. When Claude Code compacts a long conversation, the hook runs npx -y contextforge-mcp recall and re-injects the session objective, memories relevant to what you are working on, your project's 10 most recent memories and pending tasks, so decisions saved in ContextForge survive the summary.
  • Session objective hook (Claude Code only, 0.13.0) — a UserPromptSubmit hook that runs the generated script .claude/hooks/contextforge-objective.cjs with plain node (~50 ms). It records your prompts to ~/.contextforge-mcp/sessions/<session_id>.jsonl on your machine, so recall can put the session's objective back after a compaction. The log is pruned after 14 days and never uploaded; see the privacy note below for what recall sends.

Files written:

  • CLAUDE.md for Claude Code (signals: existing CLAUDE.md or .claude/ directory)
  • .cursorrules for Cursor (signals: existing .cursorrules or .cursor/ directory)
  • .claude/settings.json for Claude Code — merged, never overwritten; only the two ContextForge hook groups are added
  • .claude/hooks/contextforge-objective.cjs for Claude Code — the generated objective hook script (safe to commit; refreshed by init when a new version ships; Claude Code's own system turns — prompts that start with an XML-like tag and contain a closing tag — are not logged)

If no editor is detected, both files are generated.

On clients that honor server instructions (Claude Desktop, Claude Code), ContextForge is used automatically even without this step. On other clients — or to guarantee the built-in file-based auto-memory never wins — run init: it writes explicit rules that always route memory to ContextForge.

Override with --editor
FlagBehavior
--editor=claudeGenerate only CLAUDE.md
--editor=cursorGenerate only .cursorrules
--editor=allGenerate both, skip detection

Re-running init is idempotent per section — sections you already have are left untouched; missing ones are appended. Upgrading from an older version? Just re-run npx contextforge-mcp init: it adds the new Startup Context section without touching the rest of your file.

Check your version
npx contextforge-mcp --version   # also: -v, version

Prints the installed version (e.g. contextforge-mcp 0.5.2).

Surviving compaction (Claude Code)

Long sessions get compacted: Claude Code summarizes the conversation to free space, and the summary keeps the gist but drops details — usually the decisions, and often the task itself. init installs two hooks that fix both:

  1. Objective hook (UserPromptSubmit) — records each prompt locally so the session's first real request is never lost to the summary.
  2. Recall hook (SessionStart, matcher compact) — fires right after every compaction and prints back, in this order: the session objective and the latest request before the cut; up to 5 memories relevant to the current work (semantic search over the objective, git branch, recent commit subjects and changed files, whatever their age); the project's 10 most recent memories; up to 5 pending tasks; and a reminder to call memory_query for anything older. The whole block stays around 4 KB and is injected once, never pinned, so it does not move the compaction trigger.

The relevance search is one metered query per compaction. It only runs when there is a session objective or you are on a non-default branch (git-only context on main is noise), it runs in parallel with the other fetches under the same 6-second stage deadline, so a slow search can never drop the rest of the block, and CONTEXTFORGE_RECALL_RELEVANCE=0 in the environment turns it off entirely.

The hooks run as plain shell commands, so recall reads your API key from CONTEXTFORGE_API_KEY if set, otherwise from the contextforge server entry in ~/.claude.json (where claude mcp add stores it), otherwise from a project .mcp.json. It needs a linked project (.contextforge in the repo root). If anything is missing it prints nothing and never blocks the session. Note that a CONTEXTFORGE_API_KEY exported in your shell profile wins over ~/.claude.json: if it holds an old key, recall silently prints nothing.

Try it by hand from your project directory:

npx contextforge-mcp recall           # prints the block for the newest session in this directory
npx contextforge-mcp recall --stats   # local numbers: recalls, objective coverage, follow-up queries

Privacy: the prompt log and the recall stats live under ~/.contextforge-mcp/ on your machine and are never uploaded. What leaves the machine: after a compaction, recall sends the session objective (at most 600 characters, together with the git branch, recent commit subjects and changed file names) to ContextForge as the search query, the same way memory_query sends a query; it is not stored. Note that .claude/settings.json is usually committed, so teammates who pull the repo get the prompt hook too; they can remove the UserPromptSubmit group to opt out.

Already using ContextForge? (existing users)

Nothing to reconfigure. Update to the latest and restart your AI client:

npm update -g contextforge-mcp   # only if you installed globally; npx users get it on next launch

You do not need to re-run init for the auto-load behavior. To get the post-compaction recall hook and the session objective hook, run npx contextforge-mcp init once in each project; it only adds what is missing. Since 0.13.2 the server reminds you once per project when the recall hook is installed but the objective hook is missing or outdated.


Available Tools

ContextForge defines 69 tools across Knowledge Management, GitHub Integration, Issue Tracking, and Collaboration. No capability was ever removed — every tool below is fully callable — but as of v0.11.0, your AI client sees only 11 of them by default (CONTEXTFORGE_TOOLS=lean, the default):

  • 10 core tools — the ones used on the agent's own initiative every session: memory_query, memory_ingest, memory_check_freshness, memory_confirm, memory_correct, memory_forget, tasks_list, tasks_what_next, session_list, memory_help.
  • cf_tools — one gateway tool that discovers and runs the other 59. Ask your AI naturally ("sync my git commits", "restore from a snapshot", "olvida ese recuerdo viejo") and it searches (English or Spanish) and calls the right tool for you — no need to know an exact name.

Set CONTEXTFORGE_TOOLS=full to expose all 69 tools directly to your client instead, matching the behavior of versions before 0.11.0. See Environment Variables.

Why lean by default: 69 tool schemas cost ~15,000 tokens of context on every session, push past Cursor's 40-tool cap, and contribute to the accuracy degradation several clients show past ~50 tools. The lean set cuts that to ~3,500 tokens (~77% less) while keeping every tool one call away via cf_tools.

Knowledge Management

ToolDescription
memory_ingestSave knowledge to memory
memory_querySearch your knowledge semantically
memory_list_itemsList all stored items
memory_deleteRemove specific items
memory_ingest_batchSave multiple items at once
memory_delete_batchDelete items by filter

Spaces & Projects

ToolDescription
memory_list_spacesList your spaces
memory_create_spaceCreate a new space
memory_delete_spaceDelete a space
memory_move_spaceMove space to project
memory_list_projectsList your projects
memory_create_projectCreate a new project
memory_delete_projectDelete a project
memory_link_projectLink directory to project
memory_unlink_projectUnlink directory
memory_current_projectShow linked project

GitHub Integration

ToolDescription
memory_git_connectConnect a GitHub repo
memory_git_listList connected repos
memory_git_activateActivate/deactivate webhook
memory_git_syncImport existing history
memory_git_commitsList synced commits
memory_git_prsList synced PRs
memory_git_disconnectDisconnect a repo

Issue Tracking

ToolDescription
issues_listList your issues
issues_createCreate a new issue
issues_startMark as in progress
issues_resolveMark as resolved
issues_resolve_by_nameResolve by title
issues_assignAssign to collaborator
issues_what_nextGet recommendation

Collaboration

ToolDescription
project_shareShare project by email
collaborators_listList collaborators

Snapshots & Export

ToolDescription
memory_snapshot_createCreate a backup
memory_snapshot_listList all snapshots
memory_snapshot_restoreRestore from backup
memory_snapshot_deleteDelete a snapshot
memory_exportExport to JSON/MD/CSV
memory_importImport from file

Utility

ToolDescription
memory_statsView usage statistics
memory_relateLink two items
memory_helpShow help

Session Presence (multi-session coordination)

Running several Claude Code sessions in parallel (worktrees, agent teams)? Each MCP process automatically registers itself as a live session and heartbeats while it runs. On a clean exit the session is removed at once (a detached helper delivers the goodbye even while the host process is being killed); if the process dies hard, the session expires ~10 minutes after its last heartbeat. Three tools let the agent coordinate — session_list is a core tool and always visible; session_update and session_end are reached through the cf_tools gateway by default (or set CONTEXTFORGE_TOOLS=full to see all three directly):

ToolWhat it does
session_updateDeclare what this session is working on ("working on the auth module")
session_listSee other live sessions in the same project and their focus before touching shared areas (pass all_projects: true for the whole org)
session_endExplicitly end this session's presence (also automatic on exit)

By default session_list is scoped to the current project — where work actually collides. In a multi-project organization, pass all_projects: true to see every session, or project: "<name-or-id>" to scope elsewhere.

Recommended pattern for your CLAUDE.md: call session_list when a conversation starts; call session_update when starting or switching tasks.


Natural Language Examples

You don't need to memorize commands — just talk naturally to your AI:

# Knowledge
"Save this: we use PostgreSQL for the main database"
"What database do we use?"
"List my spaces"

# GitHub
"Connect my repo github.com/myuser/myproject"
"What commits did I make today?"
"Show PRs merged this week"

# Issues
"Create an issue: Update the login page design"
"What's pending?"
"What should I work on next?"
"Mark the login issue as done"

Environment Variables

VariableRequiredDescription
CONTEXTFORGE_API_KEYYesYour API key from the dashboard
CONTEXTFORGE_API_URLNoAPI endpoint (defaults to production)
CONTEXTFORGE_DEFAULT_SPACENoDefault space for operations
CONTEXTFORGE_TOOLSNolean (default) exposes 11 tools — the 10 most-used plus the cf_tools gateway to the other 59. full exposes all 69, as versions before 0.11.0 did. Lean keeps ContextForge under Cursor's 40-tool cap and Claude Code's 50-tool degradation threshold.

How it works

ContextForge MCP is a thin client that translates Model Context Protocol tool calls into authenticated HTTP requests against the ContextForge API. Your knowledge is stored, indexed (semantic embeddings), and retrieved on the server side — the MCP client itself is stateless.

This means:

  • No infra to manage — no local databases, no embeddings to run, no vector stores to maintain
  • Works everywhere your AI works — same memory across Claude Code, Cursor, Copilot, etc.
  • Team collaboration — shared projects sync in real time

Dashboard

Manage your memory visually at contextforge.dev:

  • View and organize your knowledge
  • Search and filter memories
  • Manage API keys and billing
  • Track issues and collaborate
  • Export and backup data

Development

# Clone and install
git clone https://github.com/alfredoizdev/contextforge-mcp.git
cd contextforge-mcp
npm install

# Build
npm run build

# Run tests
npm test

# Watch mode
npm run dev

Contributing

Issues and pull requests are welcome at github.com/alfredoizdev/contextforge-mcp.


Support

  • 📖 Documentation
  • 🐛 Report Issues
  • 💬 Questions: support@contextforge.app

License

MIT © Alfredo Izquierdo

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Lid closed, agents working
Lid closed, agents working
Keeps your Mac awake while Claude Code, Codex or Cursor works. Lets it sleep when they are done.
Try free for 7 days →
Block distraction from your iPhone for freeBlock distraction from your iPhone for free
Block distraction from your iPhone for free
Block distracting apps from your iPhone permanently without a 3rd party app. Free and open source.
Block now (100% free) →
Granola, the best AI meeting recorder
Granola, the best AI meeting recorder
Notes, actions and memory. Without a meeting bot. First month 100% off.
Download for free →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
Open Steps
Open Steps
Free an open-source skills that make AI coding agents easier to understand, verify, and control.
Download for free →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Agent, connect blockchain
Agent, connect blockchain
Connect your Claude agent to live crypto prices and trading routes via 1inch
Get the MCP →

Configuration

CONTEXTFORGE_API_KEY*secret

Your API key from the ContextForge dashboard at contextforge.dev

CONTEXTFORGE_API_URLdefault: https://api.contextforge.dev

API endpoint URL (defaults to production)

Categories
AI & LLM ToolsDeveloper Tools
Registryactive
Packagecontextforge-mcp
TransportSTDIO
AuthRequired
UpdatedJun 2, 2026
View on GitHub

Related AI & LLM Tools MCP Servers

View all →
apilocker avatar
API Locker

apilocker/apilocker

Encrypted credential vault: LLM, service & OAuth keys. 21-tool MCP server for your AI agent.
ariekogan avatar
Ateam Mcp

ariekogan/ateam-mcp

Build, validate, and deploy multi-agent AI solutions from any AI environment.
bch1212 avatar
Injectshield

bch1212/injectshield

Prompt-injection firewall for AI agents — scan untrusted text before LLM calls.
beforeyouship avatar
//beforeyouship — LLM cost modeling from your editor

beforeyouship/cost-model

Model the realistic monthly cost of an LLM app **before you build it**. Not a token calculator: retries, prompt caching, batch discounts, infra overhead, and 3×/10× growth are modeled in, across GPT-5.x, Claude, Gemini, DeepSeek, and more. **Works without a key.** Connect and ask — demo mode covers the six free-tier models. A Pro API key ([beforeyouship.dev](https://beforeyouship.dev)) unlocks the full 18-model catalog. ## Tools | Tool | What it does | |---|---| - **`estimate_cost`** Full cost model for an architecture at a given usage level. Returns Naive / Realistic / Worst Case $/mo per model, growth scenarios, and an opinionated recommendation. | - **`get_model_prices`** Current per-1M-token pricing (input, output, cached, batch) with context windows and staleness metadata. | - **`list_archetypes`** Seven preset architecture patterns (chatbot, RAG pipeline, multi-step agent, …) used as starting points for estimates. | ## Try it Paste into Claude Code or Cursor after connecting: > Estimate the monthly cost of a RAG pipeline at 10,000 requests/day ## Setup ```bash claude mcp add --transport http beforeyouship https://beforeyouship.dev/api/mcp ``` ## Links - Docs & tool reference: https://beforeyouship.dev/docs#mcp - Live calculator: https://beforeyouship.dev - Announcement: https://beforeyouship.dev/blog/query-llm-costs-from-claude-code
beforeyouship avatar
//beforeyouship — LLM cost modeling from your editor

beforeyouship/cost-model-e50f1778

Model the realistic monthly cost of an LLM app **before you build it**. Not a token calculator: retries, prompt caching, batch discounts, infra overhead, and 3×/10× growth are modeled in, across GPT-5.x, Claude, Gemini, DeepSeek, and more. **Works without a key.** Connect and ask — demo mode covers the six free-tier models. A Pro API key ([beforeyouship.dev](https://beforeyouship.dev)) unlocks the full 18-model catalog. ## Tools | Tool | What it does | |---|---| - **`estimate_cost`** Full cost model for an architecture at a given usage level. Returns Naive / Realistic / Worst Case $/mo per model, growth scenarios, and an opinionated recommendation. | - **`get_model_prices`** Current per-1M-token pricing (input, output, cached, batch) with context windows and staleness metadata. | - **`list_archetypes`** Seven preset architecture patterns (chatbot, RAG pipeline, multi-step agent, …) used as starting points for estimates. | ## Try it Paste into Claude Code or Cursor after connecting: > Estimate the monthly cost of a RAG pipeline at 10,000 requests/day ## Setup ```bash claude mcp add --transport http beforeyouship https://beforeyouship.dev/api/mcp ``` ## Links - Docs & tool reference: https://beforeyouship.dev/docs#mcp - Live calculator: https://beforeyouship.dev - Announcement: https://beforeyouship.dev/blog/query-llm-costs-from-claude-code
bitofacoder avatar
Omni Mcp Server

bitofacoder/omni-mcp-server

All-in-one MCP server: GitHub, Git, Slack, web fetch, memory, and filesystem. Agent Mode opt-in.