law-scrapper-mcp: Instructions file for Claude Code

CLAUDE.md

law-scrapper-mcp CLAUDE.md is an instructions file for Claude Code from numikel/law-scrapper-mcp. It costs 2,113 tokens per session, scanned A, original, MIT.

Project instructions for a Python MCP server that searches and analyzes Polish laws through the official Sejm legal-information API. Polish legal acts are laws and regulations published by Poland’s parliament; MCP is a standard way to expose tools to an AI agent.

In plain words
What is it for?
Use them when installing dependencies, running the server locally or over HTTP, running unit and integration tests, checking code quality, or preparing a release.
Why use it?
They give contributors the commands, supported connection methods, testing steps, and release guidance needed to work on the project consistently.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/numikel/law-scrapper-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/numikel/law-scrapper-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,113 This file is loaded in full into every session.
When invoked 2,113 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.02113 $0.02113
Opus 5.5 $0.00845 $0.00845
Sonnet 5.5 $0.00423 $0.00423
Haiku 4.5 $0.00211 $0.00211

Measured yesterday against content hash 6e8cb1d87d91, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

law-scrapper-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 yesterday.

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 · 123 lines

How it starts

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

CLAUDE.md

Project overview

Law Scrapper MCP v4.4.2 is a modular Python MCP server that exposes 13 tools for searching and analyzing Polish legal acts from the Sejm API (api.sejm.gov.pl/eli/). Built with the official Python MCP SDK (mcp[cli]==2.2.0, MCPServer[AppContext]), it supports STDIO (default) and stateless Streamable HTTP at /mcp on port 7683.

Development commands

# Dev tools (pytest, ruff, mypy, pip-audit) are an extra — plain `uv sync` omits them
uv sync --extra dev

# Module work (modules/*) and the lint job need the workspace members installed too
uv sync --extra dev --all-packages

# The CI lint job, in full. `ruff format --check` is the gate most often missed locally
uv run ruff check src tests modules && uv run ruff format --check src tests modules && uv run mypy src/law_scrapper_mcp/ modules/*/src/law_scrapper_mcp_*/

# Integration tests need the marker, or they are silently skipped
uv run pytest tests/integration/ -v -m integration

# HTTP transport is opt-in via env var, not a flag
LAW_MCP_TRANSPORT=streamable-http uv run python -m law_scrapper_mcp

# Local mirror of the CI lint + test jobs; MCP conformance, Docker smoke and pip-audit run only in CI
uv run python scripts/check_release.py --version X.Y.Z

mypy runs with disallow_untyped_defs = true: every new function, tests included, needs annotations.

HTTP auth and binding

LAW_MCP_AUTH_MODE defaults to none, which is accepted only on loopback. A non-loopback LAW_MCP_HOST, LAW_MCP_ALLOWED_HOSTS or LAW_MCP_ALLOWED_ORIGINS makes startup fail unless the mode is bearer or oauth (config_validation.py). This is deliberate — fix the configuration, never the validator. docker-compose.yml needs LAW_MCP_AUTH_TOKEN exported, and tests/unit/test_deployment_files.py rejects an unauthenticated exposure in the Dockerfile, compose file or README.

Testing

Layers, commands and file layout: tests/TEST_SUITE_SUMMARY.md. Every new test file must be listed there. Policy tests that fail on edits outside src/:

  • test_readme_tool_table.py — the README tool table must match the live tools/list, so adding or renaming a tool means editing the README
  • test_dependency_policy.py — mcp[cli] stays pinned with ==, pyjwt and uvicorn stay direct dependencies, no fastmcp anywhere

Read the full file on GitHub · 123 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. yesterday Changed · +6 lines · +124 tokens per session 6e8cb1d87d91
  2. 4d ago Changed · +5 lines · +80 tokens per session 07d2271d79b7
  3. 5d ago Changed · +1 lines · +65 tokens per session 9ffe59252ae7
  4. 6d ago Changed · +23 lines · +357 tokens per session c456e4026c32
  5. 7d ago Changed · +1 lines · +24 tokens per session bd0ce6706628
  6. 12d ago Changed · +7 tokens per session e32d1c7e96e0
  7. 19d ago Changed · +2 lines · +44 tokens per session ba615e7b9f0b
  8. 1mo ago Changed · +34 tokens per session cffddebcceab
  9. 1mo ago Changed · +4 lines · +80 tokens per session 9aec30193b97
  10. 2mo ago First seen · 81 lines · 1,298 tokens per session scan A 765b9cc2e2f7

Subscribe to this mod's changes

law-scrapper-mcp CLAUDE.md is an instructions file published in the GitHub repository numikel/law-scrapper-mcp (23 stars, last pushed yesterday), licensed MIT. It adds 2,113 tokens to every session, about $0.0085 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

law-scrapper-mcp CLAUDE.md compared with instructions from other repositories

law-scrapper-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
law-scrapper-mcp CLAUDE.mdnumikel/law-scrapper-mcpInstructions file23yesterdayMITA2,113Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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