mcp: Instructions file for Claude Code

CLAUDE.md

mcp CLAUDE.md is an instructions file for Claude Code from post-crawl/mcp. It costs 1,259 tokens per session, scanned A, original, MIT.

A project instruction document for developing a PostCrawl MCP server. PostCrawl provides search and content extraction from Reddit and TikTok, while MCP connects those tools to AI assistants.

In plain words
What is it for?
Building or maintaining the server, including its Cloudflare Workers and Hono setup, bearer-token authentication, and tool parameter validation.
Why use it?
It gives developers the server’s architecture, authentication process, and input rules in one place.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/post-crawl/mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/post-crawl/mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,259 This file is loaded in full into every session.
When invoked 1,259 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.01259 $0.01259
Opus 5.5 $0.00504 $0.00504
Sonnet 5.5 $0.00252 $0.00252
Haiku 4.5 $0.00126 $0.00126

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

Security

Grade A, and why

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

How it starts

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

PostCrawl MCP Server Development Guide

Overview

This is a Model Context Protocol (MCP) server implementation for PostCrawl, providing AI assistants with tools to search and extract content from social media platforms (Reddit and TikTok). Built on Cloudflare Workers with Hono framework.

Architecture

  • Hono: Web framework for routing and middleware
  • MCP SDK: Protocol implementation for AI tool integration
  • Zod: Runtime validation for tool parameters
  • PostCrawl Client: Internal API client for PostCrawl services

Key Technologies

  • Cloudflare Workers: Serverless execution environment
  • TypeScript: Full type safety with strict mode
  • @post-crawl/extraction-schemas: Shared types for extraction and search operations

Authentication Flow

  1. MCP client sends Bearer token in Authorization header
  2. Token is extracted and validated in request handlers
  3. Token is passed to PostCrawl API for authentication
  4. Errors return appropriate JSON-RPC error responses

Tool Schemas

All tools use Zod schemas for parameter validation:

  • socialPlatformSchema: Enum of supported platforms (reddit, tiktok)
  • responseModeSchema: Enum of response formats (raw, markdown)
  • Parameters are validated before API calls
  • Important: Tool parameters use snake_case (e.g., social_platforms, include_comments, response_mode) to match API expectations

Available Tools

search

Search across social media platforms.

  • Input: query, page, results, social_platforms[]
  • Output: Array of search results with title, url, snippet, date (formatted string), imageUrl
  • Note: Dates are returned as formatted strings (e.g., "Dec 28, 2024")

search_and_extract

Combined search and content extraction.

  • Input: Same as search + response_mode, include_comments
  • Output: Array of extracted posts

extract

Extract content from specific URLs.

  • Input: urls[], response_mode, include_comments
  • Output: Array of posts with content

check_health

Health check for PostCrawl API.

  • No parameters required
  • Returns API status

Read the full file on GitHub · 170 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. 2mo ago First seen · 170 lines · 1,259 tokens per session scan A 2eab284b7801

Subscribe to this mod's changes

mcp CLAUDE.md is an instructions file published in the GitHub repository post-crawl/mcp (0 stars, last pushed 1y ago), licensed MIT. It adds 1,259 tokens to every session, about $0.0050 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-31.

Related

mcp CLAUDE.md compared with instructions from other repositories

mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp CLAUDE.mdpost-crawl/mcpInstructions file01y agoMITA1,259Claude 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