knowledge-mcp: Instructions file for Claude Code

CLAUDE.md

knowledge-mcp CLAUDE.md is an instructions file for Claude Code from olafgeibig/knowledge-mcp. It costs 359 tokens per session, scanned A, original, MIT.

Repository instructions for knowledge-mcp, a Python project, covering coding style, file handling, dependencies, documentation, and development commands. It recommends pytest for tests and uv for managing packages and environments.

In plain words
What is it for?
Use it when writing or reviewing knowledge-mcp code, managing dependencies, creating command-line scripts, running tests, or starting a development environment.
Why use it?
It gives coding agents clear local conventions so changes fit the project and can be run and checked in the expected way.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; built for aider.

This is olafgeibig/knowledge-mcp's own configuration. It tells Claude Code how to work on knowledge-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 knowledge-mcp configures →

Reuse

Borrowing it

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/olafgeibig/knowledge-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/olafgeibig/knowledge-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/olafgeibig/knowledge-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/olafgeibig/knowledge-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 knowledge-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/olafgeibig/knowledge-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/olafgeibig/knowledge-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 359 This file is loaded in full into every session.
When invoked 359 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.00359 $0.00359
Opus 5.5 $0.00144 $0.00144
Sonnet 5.5 $0.00072 $0.00072
Haiku 4.5 $0.00036 $0.00036

Measured 2mo ago against content hash b12ef2508f53, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

knowledge-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 2mo 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 · 43 lines

What it actually says

Ignore Patterns

CLAUDE.md .aider* attic/ docs/

Coding

  • Use Python 3.12 features and syntax
  • Follow PEP 8 style guide for Python code
  • Use type hints everywhere possible
  • Use list, dict, and set comprehensions when appropriate for concise and readable code.
  • Prefer pathlib over os.path for file system operation
  • Use explicit exception handling. Catch specific exceptions rather than using bare except clauses
  • Keep functions and methods small and focused on a single task
  • Use docstrings for all public modules, functions, classes, and methods
  • Use dataclasses for data containers when appropriate
  • Prefer composition over inheritance where possible
  • Use logging for debugging and monitoring
  • Use meaningful variable and method names

Development

  • Use pytest for unit testing
  • Do not create tests unless requested by the user
  • Use uv for dependency management

Using uv

  • use 'uv add ' to add dependencies
  • use 'uv remove ' to remove dependencies
  • Create uv scripts for running scripts in pyproject.toml [project.scripts]
  • Use hatchling as the build-system

Running

  • Ensure activate the venv before spawning a new console session: source .venv/bin/activate
  • Use uv scripts to run something

Using Tools (MCP)

  • Use the sequential-thinking tool if the problem is complex and you need to think hard, you need to think step by step. This is mandatory.
  • Use the context7 tool to look up the documentation of a library.

Project

  • Project sepecification is in the specs directory:
    • prd.md: project requirements
    • plan.md: development plan
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. 2mo ago First seen · 43 lines · 359 tokens per session scan A b12ef2508f53

Subscribe to this mod's changes

knowledge-mcp CLAUDE.md is an instructions file published in the GitHub repository olafgeibig/knowledge-mcp (59 stars, last pushed 8mo ago), licensed MIT. It adds 359 tokens to every session, about $0.0014 per session on Opus 5.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-30.

Related

knowledge-mcp CLAUDE.md compared with instructions from other repositories

knowledge-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
knowledge-mcp CLAUDE.mdolafgeibig/knowledge-mcpInstructions file598mo agoMITA359Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode