mcp-claude-context: Instructions file for Claude Code

CLAUDE.md

mcp-claude-context CLAUDE.md is an instructions file for Claude Code from hamzaamjad/mcp-claude-context. It costs 2,545 tokens per session, scanned B, original, MIT.

Project instructions for an MCP server that extracts, stores, searches, analyzes, and exports Claude conversations. MCP is a standard that lets software expose tools to an agent.

In plain words
What is it for?
Use it when developing or maintaining the Claude conversation context server and its related extraction, storage, search, or export code.
Why use it?
It gives an agent the project context needed to work safely in the repository, including its Chrome extension, bridge server, database, and search system.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; positional $N argument.

This is hamzaamjad/mcp-claude-context's own configuration. It tells Claude Code how to work on mcp-claude-context 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 mcp-claude-context configures โ†’

Reuse

Borrowing it

Nothing to install: this file belongs to hamzaamjad/mcp-claude-context. 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/hamzaamjad/mcp-claude-context/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/hamzaamjad/mcp-claude-context

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 mcp-claude-context CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hamzaamjad/mcp-claude-context/claude-md.svg)](https://agentmods.dev/instructions/hamzaamjad/mcp-claude-context/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/hamzaamjad/mcp-claude-context/claude-md"><img src="https://agentmods.dev/badge/instructions/hamzaamjad/mcp-claude-context/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,545 This file is loaded in full into every session.
When invoked 2,545 The same file โ€” it is already loaded in full.
Security scan B 2 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.02545 $0.02545
Opus 5 $0.01273 $0.01273
Sonnet 5 $0.00509 $0.00509
Haiku 4.5 $0.00254 $0.00254

Measured 7d ago against content hash 2549c2a3b55a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

mcp-claude-context CLAUDE.md scanned grade B with 2 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 7d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 644 data/db/conversations.db

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:9222/api/status
CLAUDE.md ยท 421 lines

How it starts

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

MCP Claude Context Server - CLAUDE.md

๐ŸŽฏ Project Overview

MCP (Model Context Protocol) server for extracting, storing, searching, and analyzing Claude.ai conversations with enhanced database storage, semantic search, and multiple export formats. Version 0.5.0 includes SQLite database, AI-powered search, and Docker deployment.

๐Ÿ—๏ธ Architecture

Claude.ai โ†’ Chrome Extension โ†’ Bridge Server โ†’ MCP Server โ†’ SQLite DB
                                                     โ†“
                                              Search Engine
                                                     โ†“
                                            Export Formats

๐Ÿ“ Repository Structure

mcp-claude-context/
โ”œโ”€โ”€ src/                      # Main MCP server code
โ”‚   โ”œโ”€โ”€ direct_api_server.py  # Primary server (entry point)
โ”‚   โ”œโ”€โ”€ models/               # Database models (SQLAlchemy)
โ”‚   โ”œโ”€โ”€ exporters/            # Export format handlers
โ”‚   โ””โ”€โ”€ search/               # Search engine components
โ”œโ”€โ”€ extension/                # Chrome extension for message extraction
โ”‚   โ”œโ”€โ”€ bridge_server.py      # Local HTTP server (port 9222)
โ”‚   โ””โ”€โ”€ content.js            # DOM extraction logic
โ”œโ”€โ”€ deployment/               # Docker & installer scripts
โ”œโ”€โ”€ extracted_messages/       # Local conversation storage
โ””โ”€โ”€ data/db/                  # SQLite database location

๐Ÿš€ Quick Commands

Server Operations

# Start MCP server (main functionality)
poetry run python -m src.direct_api_server

# Start bridge server (for Chrome extension)
poetry run python extension/bridge_server.py

# Run both with Docker
cd deployment/docker && docker-compose up -d

# One-click install (Mac/Linux)
cd deployment/installer && ./install.sh

Database Operations

# Initialize database
poetry run python -c "from src.models.conversation import init_database; init_database()"

# Run migration from JSON to SQLite
poetry run python deployment/scripts/migrate_data.py

# Backup database
cp data/db/conversations.db data/db/conversations_backup_$(date +%Y%m%d).db

Read the full file on GitHub ยท 421 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. 7d ago First seen ยท 421 lines ยท 2,545 tokens per session scan B 2549c2a3b55a

Subscribe to this mod's changes

mcp-claude-context CLAUDE.md is an instructions file published in the GitHub repository hamzaamjad/mcp-claude-context (1 stars, last pushed 1y ago), licensed MIT. It adds 2,545 tokens to every session, about $0.0127 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). 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

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

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