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: Sovereign Universal Memory MCP

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

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
64Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Provides a persistent, vendor-neutral memory layer that allows AI tools and agents to share context and knowledge across different platforms while maintaining local data ownership. It enables users to store, recall, and manage structured memories through hybrid semantic search and automated context assembly.
    Last updated
    24
    Apache 2.0
  • A
    license
    -
    quality
    C
    maintenance
    Provides AI coding agents with persistent, graph-connected memory across projects, enabling cross-project context retrieval via synaptic connections and hybrid search.
    Last updated
    17
    6
    MIT

View all related MCP servers

Related MCP Connectors

  • Universal memory for AI agents and tools. Save, organize and search context anywhere.

  • Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.

  • Persistent memory for AI agents. Search, store, and recall across sessions.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/contextfs/contextfs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server