Setup Guide 6 min read | November 2026

Todo MCP for Grok: Persistent Task Memory for Grok Build and Grok-Powered Agents

Using Grok as your coding agent? Todo MCP gives Grok Build \u2014 and any MCP-capable harness running Grok models \u2014 a persistent to-do list and context store that survive context limits, crashes, and session boundaries. One `grok mcp add` command. No account needed to buy.

Keep this work after the chat resets

Leave your email and we will send the setup tutorial. You can tell us which agent you use before any price is shown.

Step 1 of 4

This needs to be a real email — we'll email you in a few minutes.

No spam. Unsubscribe anytime.

The Hidden Problem Killing Your Grok Coding Sessions

You are in the zone. Grok Build, xAI's terminal coding agent, has been refactoring a complex authentication system with you for the past hour. You have discussed architectural decisions, established naming conventions, and made significant progress on the implementation.

Then it happens. The session ends — or the context fills and the earlier work gets compacted away.

Grok just forgot everything. The architectural decisions, the naming conventions, your progress tracker, the subtle constraints you discovered along the way. Gone. You are back to square one, explaining the same concepts again to an agent that has no memory of your previous work.

This is context loss, and it is the single biggest productivity killer when working with AI coding assistants — Grok included. A bigger context window delays the problem; it does not solve it. Every session boundary, every compaction, every crash resets your agent to zero.

What You Actually Lose When Context Resets

Context loss is not just about losing chat history. When your agent hits the limit or the session closes, you lose critical working knowledge:

  • Task Progress: Which files you have modified, what still needs to be done, and the current state of your implementation
  • Architectural Decisions: Why you chose certain patterns, rejected others, and the constraints that shaped those choices
  • Priority Context: What is urgent, what can wait, and why certain tasks depend on others
  • Discovered Constraints: Edge cases, gotchas, and lessons learned during implementation that will have to be re-discovered

The real cost is not the few minutes of re-explaining. It is the cumulative friction that compounds across a multi-day project. Each reset forces you to rebuild shared understanding with your agent before any real work resumes.

The Solution: Persistent Task Memory via MCP

Grok speaks MCP natively. xAI's own documentation describes how MCP servers expose external tools to Grok, available alongside the built-in ones. That means Grok does not need to hold your project plan in its context window at all — it can write the plan to a persistent memory system and read it back whenever a new session starts.

Todo MCP is that memory system. It provides exactly two facilities, both stored in a local SQLite file on your own machine:

  1. A to-do list built for agents — tasks with permanent IDs, dependencies, prioritization, state tracking, and room for long narratives, so the plan survives intact across sessions, crashes, and model switches.
  2. A context key-value store — the decisions, constraints, and conventions your agent needs to remember, saved deliberately instead of left to the mercy of the context window.

Instant Session Recovery with context_resume

The most powerful feature is instant session recovery. When a new Grok Build session starts, a single tool call brings your agent up to speed:

todo-mcp__context_resume

(In Grok Build, MCP tools are namespaced as <server>__<tool> — so Todo MCP's tools appear as todo-mcp__todo_create, todo-mcp__context_set, and so on.)

This call returns everything your agent needs to continue exactly where it left off:

  • Active tasks with their current status
  • Saved context, including architectural decisions and constraints
  • Task history showing what was completed and when
  • Recommended next steps based on priority and dependencies

No more spending the first ten minutes of every session re-explaining your project. Your agent resumes productive work within seconds.

Key Features That Preserve Your Work

A Task List That Outlives the Session

Create persistent tasks that survive any context reset:

todo-mcp__todo_create content:"Implement OAuth2 authentication" priority:"high"

Tasks carry permanent IDs and dependencies, so "finish the token refactor before the integration tests" is a relationship the list itself remembers — not a hope that the conversation still contains it.

Context Storage for Decisions

Save important decisions and constraints to persistent memory:

todo-mcp__context_set key:"auth_decision" value:"Using refresh token rotation for security"

This context survives indefinitely. Your agent can reference these decisions across sessions days or weeks apart — and because the state lives outside the model, it survives switching models or harnesses entirely.

A Real Workflow Example

Here is how a typical multi-day project looks with persistent memory:

Session 1 (Monday morning, Grok Build):

# Create tasks for the week
todo-mcp__todo_create content:"Refactor user service"
todo-mcp__todo_create content:"Add integration tests"
todo-mcp__todo_create content:"Update API documentation"

# Save an important decision
todo-mcp__context_set key:"refactor_approach" value:"Strangler fig pattern, preserve existing API"

# Start working
todo-mcp__todo_start position_id:1

Session 2 (Tuesday, fresh session):

# Instant recovery — Grok knows exactly where you left off
todo-mcp__context_resume

# Grok continues the refactoring with full knowledge of:
# - The strangler fig approach decision
# - Current task status
# - What still needs to be done

The agent picks up exactly where it left off, with all the context it needs to continue productive work.

Setting Up Todo MCP with Grok Build

Setup takes a few minutes, and buying needs no account and no login — the lead form on todo-mcp.org asks only for an email address, then takes you straight to pricing and Stripe checkout. Your licence key is shown on the confirmation page, and a sign-in link arrives by email.

1. Buy and install. Get Todo MCP at todo-mcp.org/pricing, install the binary, and activate your licence:

todo-mcp license activate <license-key>

2. Register the server with Grok Build. Todo MCP is a local stdio MCP server, and Grok Build supports local stdio servers directly. Per xAI's documentation, everything after -- is the server command:

grok mcp add todo-mcp -- todo-mcp --mode stdio

Prefer to declare it in configuration instead? Grok Build reads ~/.grok/config.toml:

[mcp_servers.todo-mcp]
command = "todo-mcp"
args = ["--mode", "stdio"]

3. Verify the connection:

grok mcp doctor todo-mcp

grok mcp list shows your configured servers, and /mcps inside a session lets you inspect them interactively.

Already using Todo MCP with another harness? You may not need step 2 at all. Grok Build also loads MCP configurations from ~/.claude.json, .cursor/mcp.json, and project .mcp.json files — so a Todo MCP setup you created for Claude Code or Cursor carries over. And the reverse is true: because Todo MCP is a standard MCP server, it works with any coding agent, any agentic harness, or any system that supports MCP — Grok Build is one home for it, not the only one.

An Honest Note on Grok Bot and the xAI API

Accuracy matters more than coverage, so here is exactly where Todo MCP fits in the wider Grok ecosystem today:

  • Grok Build (the terminal coding agent) is the direct fit, as shown above: it runs local stdio MCP servers on your machine, where Todo MCP lives.
  • The xAI API's Remote MCP Tools connect Grok models to MCP servers over Streamable HTTP and SSE only — per xAI's documentation, stdio is not supported there. Todo MCP is a local stdio server, so it does not plug into the API's remote MCP tool directly.
  • Grok Bot and grok.com connectors add custom MCP servers by public URL. A server running locally on your machine has no public URL for Grok Bot's cloud to reach, so that is not a direct path either. An agent that has its own computer is different: it can install Todo MCP on that machine and use it there, through an MCP client or through the todo-mcp command line. A cloud agent tested exactly that on its own Linux box in November 2026.
  • Grok models inside other MCP-capable harnesses — any agent harness that lets you configure MCP servers and run the model of your choice can use Todo MCP the same way: register the stdio server once, and the task list and context store are there for whichever agent is driving.

If your Grok coding happens in the terminal, Grok Build plus Todo MCP is the whole story. If it happens somewhere else MCP is spoken, the same server follows you.

Pricing, Refunds, and Getting Started

Todo MCP is a paid subscription with monthly and annual plans; the price is shown after a few short setup questions. One licence, your machine, your data — tasks and context stay in a local SQLite file, not on our servers.

The refund policy is plain: monthly plans carry no refund (you can cancel and stop renewing), and on an annual plan, if you cancel within 30 days the first month is kept and the remaining months are refunded.

Context loss is a solved problem. Set it up once, and Grok starts every session already knowing the plan.

Give Grok a memory: see pricing and get Todo MCP

Keep this work after the chat resets

Leave your email and we will send the setup tutorial. You can tell us which agent you use before any price is shown.

Step 1 of 4

This needs to be a real email — we'll email you in a few minutes.

No spam. Unsubscribe anytime.

Continue Reading

Back to all articles