Conventions MCP logo

Conventions MCP

Local MCP memory for durable coding conventions, project rules, corrections, and preferences with hybrid search.

Install Conventions MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "conventions-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "conventions-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 7 tools correctly ().

Overview

Conventions MCP stores durable coding conventions and standing instructions in a local SQLite database for reuse across sessions and projects. It provides tools to capture, update, search, list, inspect, and delete typed thoughts, with local embeddings supporting hybrid semantic and keyword retrieval. Global and project-scoped rules can be retrieved deterministically through list_rules, including through Codex and Claude Code hooks. This repository is superseded by a Cloudflare Worker version and companion client, so new installations should use those projects.

Use cases

  • Save coding conventions for reuse across sessions
  • Apply project-specific rules without mixing codebases
  • Search stored corrections with semantic and keyword matching
  • Load deterministic rules at Codex or Claude Code context boundaries

Key features

  • Local SQLite storage with no hosted service or API key
  • Hybrid semantic and keyword thought search
  • Global and project-scoped rule retrieval
  • Five-category convention and instruction taxonomy
  • Optional localhost Streamable HTTP transport
  • Codex and Claude Code hook support

Tools7

What Conventions MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 112d

What it can do

From the 7 tools this server returned when we ran it.

Can delete or modify data · 3Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age112 days
Maintainers1

Observed 2026-11-08 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · conventions-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads404Package downloads in the last 30 days.
Last commit24d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed7Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Conventions MCP works

What Conventions MCP does

Conventions MCP is designed for durable coding guidance rather than general conversation memory. It stores rules such as formatting conventions, workflow instructions, lasting corrections, and long-lived preferences that should apply in later sessions. Each capture is assigned one of five categories: convention, instruction, correction, preference, or other. Captures also receive topic tags and a project scope.

A null project scope makes a rule global. Project-specific entries are associated with a normalized absolute path, allowing rules for one codebase to remain separate from rules for another. The server is intended to keep temporary task instructions, work history, current status, and one-off commands out of the memory store.

How it works

The runtime uses SQLite with better-sqlite3, sqlite-vec for vector search, and FTS5 for keyword search. Semantic and keyword results are combined with reciprocal rank fusion. Embeddings run locally using the quantized Xenova/bge-small-en-v1.5 model, which is downloaded once to the local model cache and loaded as needed. No API key, hosted service, or GPU is required.

The calling agent supplies the classification at capture time, guided by the capture_thought tool description. This keeps the surrounding conversation available when deciding whether an entry is a convention, instruction, correction, preference, or another durable rule. Project scope is also selected by the client or agent rather than inferred from free-form text.

MCP uses stdio by default. An optional Streamable HTTP mode runs as a localhost service for clients that should connect to one persistent process. Stdio clients derive the project from their working directory. HTTP clients can use an MCP root or provide the absolute project path through the X-Conventions-Project header.

Setup and configuration

Install dependencies from a checkout with npm install, then create the database with npm run init-db. The package can also be installed globally with:

Terminal
npm install -g conventions-mcp --onnxruntime-node-install-cuda=skip
conventions-mcp init-db
conventions-mcp warmup

The warmup command downloads and verifies the embedding model. The database, model cache, transport, and timeout settings can be adjusted through the options listed in the project’s environment example. conventions-mcp doctor checks runtime, database, permissions, vector extension, and model-cache readiness without downloading files.

For a persistent local service, set MCP_TRANSPORT=http, bind to the loopback address, and choose an HTTP port. The MCP endpoint is /mcp; /healthz provides a local readiness check. HTTP session retention can be bounded with the session limit and idle-time settings. Clients without MCP root support can set X-Conventions-Project in project-local configuration.

Tools and capabilities

  • capture_thought saves a convention, instruction, correction, preference, or other durable thought, including its classification and scope.
  • update_thought replaces an existing entry while keeping its identifier and regenerating its embedding and tags.
  • search_thoughts combines semantic similarity with keyword matching.
  • list_thoughts provides an all-records management view and can filter by type.
  • list_rules returns global and current-project rules in identifier order without embeddings or ranking.
  • thought_stats reports totals, type counts, leading topics, and project counts.
  • delete_thought permanently removes an entry by identifier.

Codex and Claude Code hooks can call list_rules at context boundaries. The documented hook behavior supplies or enforces the standing-rule lookup instead of relying only on the agent to notice a relevant tool description.

Limitations and notes

The original repository is no longer maintained. It has been superseded by a Cloudflare Worker implementation and a companion client, which should be used for new deployments.

This server is intentionally narrow. It suits coding-convention memory and deterministic rule retrieval, but not a general-purpose store for every note, task history, temporary decision, or current-status update. The taxonomy is guided by tool descriptions and schema validation rather than a separate classification model.

Local storage and embeddings keep runtime data on the host, while the embedding model requires an initial download and local disk space. Legacy databases may require the backup-first conventions-mcp migrate-storage <absolute-backup-path> command before use.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Conventions MCP

Conventions MCP is an MCP server that connects MCP-compatible AI clients to a local SQLite memory store for durable coding conventions and standing instructions. Its main tools capture, update, search, list, inspect, and delete thoughts, with deterministic rule retrieval through list_rules and local embedding-backed hybrid search.

Install it from npm or a repository checkout, then initialize its SQLite database. The package workflow uses `npm install -g conventions-mcp --onnxruntime-node-install-cuda=skip`, followed by `conventions-mcp init-db`; run `conventions-mcp warmup` to download and verify the local embedding model.

Yes, it works with MCP-compatible clients such as Cursor through its standard stdio transport or optional Streamable HTTP mode. HTTP clients that lack MCP root support should provide the project’s absolute path with the `X-Conventions-Project` header.

It associates project-scoped rules with a normalized absolute project path instead of guessing from rule text. Stdio clients derive that path from the working directory, while HTTP clients use an MCP root or the `X-Conventions-Project` header.

No, this original repository is no longer maintained. It has been superseded by a Cloudflare Worker version and a companion client, which are intended for new installations.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewConventions MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/conventions-mcp?style=directory)](https://allmcps.com/mcp/conventions-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/conventions-mcp"><img src="https://allmcps.com/api/badge/conventions-mcp?style=directory" alt="Conventions MCP on AllMCPs" /></a>