Rusty Memory MCP
Rusty Memory MCP is a no‑fuss memory server for coding agents. It chunks text, generates embeddings, and stores vectors in Qdrant. You can run it as:
- An MCP server over stdio for editors/agents
- A local HTTP service for simple scripts
If you want to hack on the codebase or learn how it works internally, jump to Developer Docs below.
Quick Start (MCP in your editor)
-
Install the binaries
This installs:
rusty_mem_mcp
(MCP server)rustymcp
(HTTP server)metrics-post
(helper used by scripts)
-
Start Qdrant (vector database)
-
Configure environment
Copy
.env.example
to.env
and edit values, or provide the same variables via your MCP client config:Required variables:
QDRANT_URL
(e.g.http://127.0.0.1:6333
)QDRANT_COLLECTION_NAME
(e.g.rusty-mem
)EMBEDDING_PROVIDER
(ollama
enables the local client; other values use the deterministic fallback for now)EMBEDDING_MODEL
(free‑form, e.g.nomic-embed-text
)EMBEDDING_DIMENSION
(must match your model, e.g.768
)OLLAMA_URL
(optional, defaults tohttp://127.0.0.1:11434
whenEMBEDDING_PROVIDER=ollama
)
-
Launch the MCP server
-
Add to your agent
-
Codex CLI (
~/.codex/config.toml
):[] = "rusty_mem_mcp" # or use the full path to the binary = [] = "stdio" [] = "http://127.0.0.1:6333" = "rusty-mem" = "ollama" = "nomic-embed-text" = "768" = "http://127.0.0.1:11434" # omit to use the default
-
JSON clients (Kilo, Cline, Roo Code):
-
-
Try it
From your agent, use:
get-collections
→ list Qdrant collectionslistResources
→ discover read-only resources; usereadResource
onmcp://rusty-mem/memory-types
andmcp://rusty-mem/health
for metadata/health snapshotsnew-collection
→ create or resize a collectionpush
(alias:index
) → index text with optional metadata (project_id
,memory_type
,tags
,source_uri
)metrics
→ view counters (documentsIndexed
,chunksIndexed
,lastChunkSize
)
Optional: Run the HTTP server
If you prefer HTTP, set the same environment and run:
By default the server binds the first free port in 4100–4199
(or SERVER_PORT
if set). Example:
Returns { "chunks_indexed": <number>, "chunk_size": <number>, "inserted": <number>, "updated": <number>, "skipped_duplicates": <number> }
on success.
Having trouble? See docs/Troubleshooting.md
.
Developer Docs
If you want to extend Rusty Memory or understand the architecture:
- Configuration reference and client snippets:
docs/Configuration.md
- Architecture and module overview:
docs/Design.md
- Editor integration examples:
docs/Editors.md
- Development guide (style, tests, scripts):
docs/Development.md
License
Licensed under the PolyForm Noncommercial License 1.0.0. Free for non‑commercial use.
Support
Issues and PRs are welcome. If anything in the Quick Start is unclear, please open an issue so we can make onboarding even smoother.