LLM-MCP: Instructions file for Claude Code

CLAUDE.md

LLM-MCP CLAUDE.md is an instructions file for Claude Code from ranjanjyoti152/LLM-MCP. It costs 1,946 tokens per session, scanned A, original, MIT.

Repository instructions for a persistent-memory MCP server backed by PostgreSQL and pgvector. It lets compatible AI assistants on different platforms share project knowledge through one server.

In plain words
What is it for?
Running the server with Docker Compose, monitoring its services, executing integration tests, and understanding its shared-memory architecture.
Why use it?
They document how to run the services, configure the server, and test the live connection. This reduces guesswork when maintaining or deploying the project.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is ranjanjyoti152/LLM-MCP's own configuration. It tells Claude Code how to work on LLM-MCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything LLM-MCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ranjanjyoti152/LLM-MCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ranjanjyoti152/LLM-MCP/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/ranjanjyoti152/LLM-MCP

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for LLM-MCP CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ranjanjyoti152/llm-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/ranjanjyoti152/llm-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ranjanjyoti152/llm-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/ranjanjyoti152/llm-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for LLM-MCP CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ranjanjyoti152/llm-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/ranjanjyoti152/llm-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,946 This file is loaded in full into every session.
When invoked 1,946 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01946 $0.01946
Opus 5 $0.00973 $0.00973
Sonnet 5 $0.00389 $0.00389
Haiku 4.5 $0.00195 $0.00195

Measured 9d ago against content hash d0af005f9aa2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

LLM-MCP CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this is

A Model Context Protocol (MCP) server that gives AI assistants persistent, cross-platform memory backed by PostgreSQL + pgvector. Any MCP-capable platform (Cursor, Claude Desktop, VS Code Copilot, Windsurf, Gemini, etc.) connects to one shared memory store over Streamable HTTP, so anything learned in one tool is recalled in all the others.

Run / build / test

Everything runs via Docker Compose (Postgres + Ollama + MCP server + dashboard):

./setup.sh                      # one-shot: writes .env, builds, starts all services, prints platform configs
docker compose up -d --build    # build + start
docker compose logs -f mcp-server
docker compose logs -f ollama   # watch the first-boot model pull (~274MB)
docker compose restart
docker compose down             # stop (add -v to wipe the pgdata + ollama_models volumes)

Tests are integration tests — they require the server to be running (they connect to http://localhost:4040/mcp over the live MCP protocol; there are no unit tests or mocks):

python test_client.py       # exercises the core tools end-to-end
python test_versioning.py   # versioning + cross-platform conflict resolution
python test_prompts.py      # MCP prompt discovery

Run a single test by editing the relevant main() — these are scripts, not a pytest suite.

Ports

  • 4040 — MCP server, endpoint is http://localhost:4040/mcp
  • 4041 — web dashboard (dashboard.py)
  • 4569 — host-mapped Postgres (maps to container 5432)
  • 9050 — Ollama API (embeddings); the server reaches it in-network at http://ollama:9050

Inside the Docker network services reach Postgres on 5432; from the host it's 4569. DATABASE_URL differs between .env (host port) and docker-compose.yml (container port) for this reason.

Architecture

Three-layer split, no ORM:

  • server.py — the MCP surface. Defines ~38 @mcp.tool()s, several @mcp.prompt()s, and memory:// resources via FastMCP. Tools are thin wrappers that call into db.py and return JSON strings. The FastMCP(instructions=...) block is a large behavioral contract that tells connected LLMs to auto-save preferences/facts/decisions and call recall/get_working_context at conversation start — editing it changes how every connected assistant behaves.
  • db.py — all SQL and business logic (~2500 lines). Owns the schema (DDL string executed on init_db()), the asyncpg connection pool, and every query. All persistence logic lives here, not in server.py.
  • embeddings.py — pluggable embedding provider selected by EMBEDDING_PROVIDER (local | ollama | openai). Default is ollama (neural embeddings from the bundled Ollama container, nomic-embed-text, 768-dim). ACTIVE_DIM/get_embedding_dim() is the single source of truth for the vector dimension; the local hash fallback projects to ACTIVE_DIM so a brief Ollama outage still yields insert-compatible vectors. Always falls back to the local hash embedder on any error or missing key.
  • dashboard.py — separate Starlette app serving static/index.html plus a read/write REST API over the same db.py.

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 78 lines · 1,946 tokens per session scan A d0af005f9aa2

Subscribe to this mod's changes

LLM-MCP CLAUDE.md is an instructions file published in the GitHub repository ranjanjyoti152/LLM-MCP (0 stars, last pushed 3mo ago), licensed MIT. It adds 1,946 tokens to every session, about $0.0097 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens