AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Post Cortex

mcp-julymetodiev-post-cortex · by julymetodiev

Post-Cortex provides durable memory infrastructure with automatic knowledge graph construction, intelligent entity extraction, and semantic search powered by local transformer models.

No reviews yet
0 installs
32 views
0.0% view→install

Install

$ agentstack add mcp-julymetodiev-post-cortex

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-julymetodiev-post-cortex)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Post Cortex? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Post-Cortex

Persistent Memory for AI Assistants

Post-Cortex is an MCP server that gives AI assistants long-term memory. It stores conversations, decisions, and insights in a searchable knowledge base with automatic entity extraction.

Features

  • Persistent Memory — conversations survive across sessions
  • Semantic Searchpotion-multilingual-128M (Model2Vec) by default. ~50 MB on disk, ms-per-text inference, multilingual (Latin / Cyrillic / CJK / Greek / Arabic) out of the box. Heavier BERT models stay available behind the bert feature.
  • Graph-RAG — search results enriched with entity-graph traversal and relationship paths
  • Knowledge Graph — every write carries typed entities + relations (post-0.3.0 MCP contract); the graph stays in sync with the prose
  • Single-entrypoint architecture — every transport (gRPC, MCP, future REST) routes through the same canonical MemoryServiceImpl::update_context; no parallel codepaths to drift between
  • Non-blocking writes — writes return as soon as the entry is durably persisted; embeddings + entity-graph merge + summary refresh land on a bounded background pipeline. Single-digit ms write latency on warm paths.
  • Privacy-first — all processing runs locally, no external API calls
  • Lock-free Rust core — O(log n) HNSW vector search, ArcSwap session state, atomic CAS write path
  • Flexible storage — RocksDB (embedded, default) or SurrealDB (local / remote, distributed)

Workspace layout

This repository is a Cargo workspace of 8 publishable crates. Pick the one that matches your need — depending on the facade post-cortex pulls everything, but most consumers only want a subset:

| Crate | Pick when you need… | crates.io | |-------|---------------------|-----------| | [post-cortex](crates/post-cortex/) | The full stack in one dep | [](https://crates.io/crates/post-cortex) | | [post-cortex-core](crates/post-cortex-core/) | Domain types + traits only (no I/O, no ML) | [](https://crates.io/crates/post-cortex-core) | | [post-cortex-proto](crates/post-cortex-proto/) | gRPC wire types (client-side) | [](https://crates.io/crates/post-cortex-proto) | | [post-cortex-embeddings](crates/post-cortex-embeddings/) | Model2Vec (default) + BERT embedders + HNSW vector DB | [](https://crates.io/crates/post-cortex-embeddings) | | [post-cortex-storage](crates/post-cortex-storage/) | RocksDB + SurrealDB backends | [](https://crates.io/crates/post-cortex-storage) | | [post-cortex-memory](crates/post-cortex-memory/) | ConversationMemorySystem orchestrator | [](https://crates.io/crates/post-cortex-memory) | | [post-cortex-mcp](crates/post-cortex-mcp/) | MCP tool functions (embed in any MCP host) | [](https://crates.io/crates/post-cortex-mcp) | | [post-cortex-daemon](crates/post-cortex-daemon/) | pcx CLI + rmcp/axum/tonic server | [](https://crates.io/crates/post-cortex-daemon) |

Dependency graph (acyclic):

post-cortex-proto ──► post-cortex-core ──► post-cortex-embeddings
                            │                      │
                            ▼                      ▼
                     post-cortex-storage ──► post-cortex-memory ──► post-cortex-mcp
                                                    │                      │
                                                    └──► post-cortex-daemon
                                                              │
                                                              ▼
                                                       post-cortex (facade)

post-cortex-core carries no transport / I/O / ML dependencies — downstream Rust projects can take it for the type system alone without dragging in RocksDB, Candle, or the server stack.

Installation

# Cargo (any platform with Rust 1.90+) — ships the pcx CLI from crates.io
cargo install post-cortex-daemon --features "embeddings,surrealdb-storage"

# Homebrew (macOS / Linux)
brew install julymetodiev/tap/post-cortex

# Or download a prebuilt binary from a release
curl -L https://github.com/julymetodiev/post-cortex/releases/latest/download/pcx-aarch64-apple-darwin -o /usr/local/bin/pcx
chmod +x /usr/local/bin/pcx

As a library

[dependencies]
# Everything in one dep — pulls the full stack including the daemon.
post-cortex = "0.3"

# Or pick the leanest crate for your use case:
# - post-cortex-core           — types + traits only (no I/O, no ML)
# - post-cortex-mcp            — MCP tool functions, embed in any MCP host
# - post-cortex-embeddings     — Model2Vec + HNSW vector DB, no orchestrator
# - post-cortex-memory         — ConversationMemorySystem + canonical service

Quick Start

1. Configure MCP (once, globally)

# HTTP transport (recommended, requires daemon running)
claude mcp add --scope user --transport http post-cortex http://127.0.0.1:3737/mcp

# Or stdio transport (no daemon needed)
claude mcp add --scope user --transport stdio post-cortex -- pcx

This registers Post-Cortex for all projects on your machine.

2. Set Up Your Project

pcx setup

This creates a session, workspace, CLAUDE.md with memory rules, hooks for enforcement, and installs agent definitions. See [Usage Guide](docs/USAGE_GUIDE.md) for details.

3. Start Coding

claude

Claude will automatically search past knowledge before answering and log new discoveries.

MCP Tools

| Tool | Purpose | |------|---------| | session | Create / list / load / search / update / delete sessions | | update_conversation_context | Store knowledge (qa, decisions, problems, code changes). 0.3.0 breaking: requires typed entities + relations arrays (minItems: 1) so the entity graph is never silently empty | | bulk_update_conversation_context | Batch variant — same per-item shape as above | | semantic_search | Find related content across sessions, workspaces, or globally; recency-bias tunable | | get_structured_summary | Get session overview (decisions, insights, entities) | | query_conversation_context | Structured queries — entity relationships, keyword search, importance scoring | | assemble_context | Graph-aware retrieval — semantic search + traversal + impact merged into one payload | | manage_workspace | Organize sessions into workspaces | | manage_entity | Delete entity / single update; cascades typed edges | | admin | Health, vectorize-session, vectorize-stats, create-checkpoint |

Daemon Mode

For multiple Claude instances sharing the same memory:

pcx start    # Start daemon
pcx status   # Check status
pcx stop     # Stop daemon

Configure Claude for HTTP transport:

{
  "mcpServers": {
    "post-cortex": {
      "type": "http",
      "url": "http://localhost:3737/mcp"
    }
  }
}

See [Daemon Mode docs](docs/DAEMON_MODE.md) for details.

Data Export/Import

pcx export --output backup.json       # Full export
pcx export --output backup.json.gz    # Compressed
pcx import --input backup.json        # Import

Storage Backends

| | RocksDB (default) | SurrealDB | |---|---|---| | Setup | Zero config | Requires server | | Distribution | Embedded | Distributed | | Vector Search | HNSW O(log n) | HNSW O(log n) |

Configure in ~/.post-cortex/daemon.toml. See [Daemon Mode docs](docs/DAEMON_MODE.md).

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | PC_HOST | 127.0.0.1 | Bind address | | PC_PORT | 3737 | Port | | PC_DATA_DIR | ~/.post-cortex/data | Storage location | | PC_STORAGE_BACKEND | rocksdb | rocksdb or surrealdb |

Development

# Build the workspace with the full feature set
cargo build --release --features "embeddings,surrealdb-storage"

# Run the unit-test suite (no network, no external state)
cargo test --workspace --lib

# Run the live E2E test against a real SurrealDB + HuggingFace Hub
# (ignored by default; needs POST_CORTEX_E2E_SURREAL_* env vars and
#  ~50 MB potion-multilingual-128M download on first run)
POST_CORTEX_E2E_SURREAL_USER=root \
POST_CORTEX_E2E_SURREAL_PASS=root  \
cargo test -p post-cortex --features "embeddings,surrealdb-storage" \
    --test integration_e2e_surrealdb -- --ignored --nocapture

# Benchmarks
cargo bench

Supply-chain hygiene

  • cargo fmt --all --check
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo deny check — see [deny.toml](deny.toml)
  • cargo audit — see [.cargo/audit.toml](.cargo/audit.toml)

CI enforces all four on every push to main.

Release notes

The current release line is 0.3.0 — Model2Vec default + non-blocking write pipeline + canonical single-entrypoint write path. See [CHANGELOG.md](CHANGELOG.md) for the full diff and migration notes.

License

MIT — see [LICENSE](LICENSE).

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.