Skip to main content
MCP server CX Codex

Selvedge — Claude Code MCP server: decision memory

Selvedge keeps decision rationale and rejected options in a project-local store. Use it when an agent needs earlier context in a later coding session.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env SELVEDGE_DB=<SELVEDGE_DB> --transport stdio selvedge -- uvx selvedge
Open on GitHub

What Selvedge does

Selvedge records decisions against project entities such as a function, database column, or API route. A record can explain the reason for a choice, alternatives that were rejected, and what might prompt a reconsideration. An agent can look up that history before editing related code.

The MCP server runs locally over stdio and stores records in SQLite under .selvedge/. The CLI can access the same store when you switch tools. Installation requires uv and Python; Python 3.11–3.14 is recommended for new installs. Only decisions someone explicitly saves can be retrieved. Selvedge does not check whether a record is true or ensure an agent will consult it.

What it helps with

  • record why an implementation approach was chosen
  • retrieve an earlier decision by function or API route
  • carry decision records between agent sessions
  • review rejected approaches before changing related code

Example prompts for the agent

  • Save why we chose this API route and record the alternative we rejected.
  • Before editing this function, find its decision history and check whether the constraints still apply.
  • Record why we selected this dependency and what would make us revisit the choice.

How to install Selvedge

Platform CLI

claude mcp add --env SELVEDGE_DB=<SELVEDGE_DB> --transport stdio selvedge -- uvx selvedge

Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from selvedge <command>

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Selvedge

How do I install Selvedge in Claude Code?

Run claude mcp add selvedge -- uvx selvedge. Installation requires uv and Python.

What does Selvedge do?

It stores decision rationale and rejected approaches in a local SQLite database. An agent can retrieve records by the project entity they concern in a later session.

Does Selvedge need a hosted account or make LLM calls?

No hosted account is required. Core record storage and retrieval use the local database without LLM calls.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor