Skip to main content
Glama

ContextFS

Persistent Memory for AI Agents - Give your AI tools memory that persists across sessions.

PyPI CI Coverage License: MIT Python 3.10+

Full Documentation | Get Started

Install

# With pip
pip install contextfs

# With uv (recommended)
uv pip install contextfs

# Run directly without installing
uvx contextfs

Related MCP server: Turbovec MCP Server

Quick Start

# Initialize your repo for indexing
contextfs index init

# Save a memory
contextfs memory save "Use PostgreSQL for database" --type decision

# Search memories
contextfs memory search "database"

# Index your codebase for semantic search
contextfs index index

MCP Integration

Add to your AI tool's MCP config:

{
  "mcpServers": {
    "contextfs": {
      "command": "uvx",
      "args": ["contextfs"]
    }
  }
}

Works with: Claude Code, Claude Desktop, Cursor, VS Code, and any MCP-compatible client.

See tool-specific setup guides for detailed instructions.

Key Features

  • Semantic Search - Find relevant memories using natural language

  • Auto Code Indexing - Index your entire codebase for context-aware AI

  • Cross-Session Memory - Decisions, facts, and patterns persist across conversations

  • Multi-Tool Sync - Share memory between Claude, Cursor, VS Code, and more

Python SDK

from contextfs import ContextFS

ctx = ContextFS()

# Save
ctx.save("Use JWT for auth", type="decision", tags=["auth"])

# Search
results = ctx.search("authentication")

Cloud Sync

Enable cross-device memory sync:

contextfs cloud login
contextfs cloud sync

Sign up at contextfs.ai for cloud features.

Documentation

Visit contextfs.ai/docs for:

  • Installation guides for each AI tool

  • API reference

  • Memory types and best practices

  • Cloud sync setup

License

MIT - Matthew Long and The YonedaAI Collaboration

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides long-term memory for AI coding agents, enabling them to remember, search, and organize information across sessions and platforms like Claude Code, ChatGPT, and Cursor.
      33 npm
      8
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides AI coding agents with a persistent memory layer to save, recall, update, and track memories across sessions and repositories using hybrid semantic search.
      5
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Gives AI coding agents persistent, local-first memory so they can store, semantically search, and recall decisions, preferences, error patterns, and cross-project guidelines directly during a session. It also optionally queues tasks for autonomous execution against that same memory.
      -