Skip to main content
3ngram connects to AI tools via the Model Context Protocol (MCP). Each client connects to the same server, so memories saved in one tool show up in all others.

Claude Desktop

Claude Desktop supports MCP natively via Streamable HTTP.
  1. Open Settings in Claude Desktop
  2. Go to the MCP Servers section
  3. Add a new server with this config:
{
  "mcpServers": {
    "3ngram": {
      "url": "https://mcp.3ngram.ai/mcp"
    }
  }
}
  1. Save and restart Claude Desktop
  2. On first use, Claude will prompt you to authorize via OAuth
Once connected, Claude discovers all 16 memory tools and 3 prompt templates automatically.

Claude Code CLI

Claude Code can connect via Streamable HTTP (remote) or stdio (local).

Remote (hosted)

claude mcp add 3ngram --transport http https://mcp.3ngram.ai/mcp

Local (self-hosted)

If you’re running 3ngram locally:
claude mcp add 3ngram -- python -m engram.mcp.server
Make sure DATABASE_URL and OPENAI_API_KEY are set in your environment.

Cursor

Cursor supports MCP servers via the @ mention system.
  1. Open Settings > MCP
  2. Add a new server:
    • Name: 3ngram
    • URL: https://mcp.3ngram.ai/mcp
  3. Authorize when prompted
Use @3ngram in chat to access memory tools:
“@3ngram run my briefing”

ChatGPT

ChatGPT supports MCP connections. Add 3ngram as an MCP server in ChatGPT’s settings. For prompt templates (briefing, debrief, project context), ChatGPT doesn’t expose the MCP prompts/list protocol natively. Add this to your custom instructions (Settings > Personalization > Custom instructions):
When I say "run my briefing", use the 3ngram MCP tools in this order:
1. commitments(include_deferred=True)
2. blockers()
3. overdue()
4. stale_commitments(days=7)
5. recall(topic="recent decisions", sort_by="recent", limit=5)

Present as a structured briefing with sections for Overdue, Blockers,
Open Commitments, Stale items, and Recent Decisions.

When I say "run my debrief", scan the conversation for decisions,
commitments, blockers, and learnings. Persist each with remember(),
resolve completed commitments, and summarize what was captured.

Self-hosted connections

If you’re self-hosting 3ngram, point your clients to your local MCP server instead:
{
  "mcpServers": {
    "3ngram": {
      "url": "http://localhost:8001/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MCP_AUTH_TOKEN"
      }
    }
  }
}
Replace YOUR_MCP_AUTH_TOKEN with the token from your .env file.

Platform feature support

FeatureClaude DesktopClaude CodeCursorChatGPT
Memory tools (16)YesYesYesYes
Prompt templatesYesYesYesVia custom instructions
Auto-capture hooksNoYesNoNo
OAuth loginYesYesYesYes
Auto-capture hooks are CLI-only because they depend on Claude Code’s hook system. See Memory Tools for details.