MCP.so
Sign In

ForkMind

@Medhovarsh

About ForkMind

🧠 Local-first LLM state branching & debugging. Capture, visualize, branch, and regression-test LLM calls as a DAG. Free & local via Ollama, any OpenAI-compatible API, MCP for agents. Zero config.

Basic information

Category

AI & Agents

License

MIT

Runtime

node

Publisher

Medhovarsh

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "forkmind": {
      "command": "npx",
      "args": [
        "-y",
        "forkmind",
        "mcp"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is ForkMind?

ForkMind is a local-first LLM state branching and debugging tool that treats AI context windows like a Git repository. It captures every LLM call into a local .forkmind/ directory, visualizes the conversation as a Directed Acyclic Graph (DAG), and lets you branch alternative prompts or model parameters from any point in historyβ€”all on your machine with no cloud or account. It works with any OpenAI-compatible API, defaulting to free open-source models via Ollama, and also supports Anthropic and hosted free tiers (Groq, OpenRouter, Together, vLLM, LM Studio).

How to use ForkMind?

Install ForkMind via npm (npx forkmind init, npx forkmind start) or globally (npm install -g forkmind). Quick start: install Ollama, pull a model, run the CLI to start a proxy on http://localhost:4500, then point your code at that proxy. ForkMind provides a drop-in SDK for Node.js (ForkMindOpenAI), adapters for LangChain.js and Vercel AI SDK, and a Claude Code plugin. Any language can capture calls by setting the client’s base URL to http://localhost:4500/v1 and passing the x-forkmind-upstream and x-forkmind-parent headers.

Key features of ForkMind

  • Local-first LLM state branching and debugging.
  • Conversation visualized as a Directed Acyclic Graph.
  • Branch from any point with alternative prompts or models.
  • Compatible with any OpenAI-compatible API or Anthropic.
  • MCP server for AI agents to query their own history.
  • Plain JSON storage, no database or telemetry.

Use cases of ForkMind

Comments

More AI & Agents MCP servers