cyberquant-mcp: Instructions file for Claude Code

CLAUDE.md

cyberquant-mcp CLAUDE.md is an instructions file for Claude Code from slb-cn/cyberquant-mcp. It costs 543 tokens per session, scanned A, original, MIT.

Project instructions for cyberquant-mcp, a TypeScript MCP server that lets AI models access data through an API gateway. They describe the architecture, commands, files, response format, limits, retries, and logging rules.

In plain words
What is it for?
Use them when developing or debugging the server, its data-query tools, resources, configuration, builds, or API-gateway behavior.
Why use it?
They prevent common integration errors, such as writing logs to the channel used for tool communication, exceeding page limits, or handling pagination and retries incorrectly.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/slb-cn/cyberquant-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/slb-cn/cyberquant-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 543 This file is loaded in full into every session.
When invoked 543 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.00543 $0.00543
Opus 5.5 $0.00217 $0.00217
Sonnet 5.5 $0.00109 $0.00109
Haiku 4.5 $0.00054 $0.00054

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

Security

Grade A, and why

cyberquant-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 · 48 lines

What it actually says

CLAUDE.md

项目定位

cyberquant-mcp 是数据共享平台的 MCP Server,作为 API Gateway 的客户端,通过 stdio 向 AI 模型暴露数据访问能力。

架构:AI 客户端 → MCP Server (本项目) → API Gateway

技术栈

TypeScript (ESM) + Node.js >= 20 + @modelcontextprotocol/sdk + zod + tsup + pnpm

常用命令

pnpm install          # 安装依赖
pnpm build            # tsup 构建 → dist/
pnpm dev              # tsx 开发运行

关键约束

  1. 日志只能写 stderr — stdout 用于 MCP stdio 通信,绝对不能污染
  2. 所有 API 请求必须带 X-Client-Type: mcp header
  3. pageSize 上限 1000 — 超过时不发请求,直接返回警告提示
  4. CSV 格式返回数据 — 表头取首条数据字段名,节省 token
  5. 不自动翻页 — hasMore 时用自然语言引导 AI 缩小查询范围,不暴露 cursor
  6. 自然语言引导 — 所有返回(数据、错误、警告)均附带清晰提示
  7. 无第三方 HTTP 库 — 使用 Node 20+ 原生 fetch
  8. 重试:仅 429/503,最多 3 次,尊重 Retry-After,指数退避上限 10s
  9. 与 cyberquant-cli 共用配置 — ~/.cyberquant/config.json,MCP 从 mcp 字段读取专有配置

仓库结构

src/
├── index.ts              # stdio 入口
├── server.ts             # MCP 服务器(注册 Tools + Resources)
├── tools/query.ts        # query_data — CSV 数据查询
├── tools/list.ts         # list_routes — 路由列表
├── tools/clear-routes-cache.ts  # clear_routes_cache — 清除路由元数据缓存
├── resources/            # user-profile / routes
├── lib/api-client.ts     # API Gateway HTTP 客户端(含重试+超时)
├── lib/config.ts         # 配置管理
├── lib/errors.ts         # 错误类型
└── types/index.ts        # 类型定义
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 · 48 lines · 543 tokens per session scan A c045b9ea599c

Subscribe to this mod's changes

cyberquant-mcp CLAUDE.md is an instructions file published in the GitHub repository slb-cn/cyberquant-mcp (0 stars, last pushed 3mo ago), licensed MIT. It adds 543 tokens to every session, about $0.0022 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

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

cyberquant-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cyberquant-mcp CLAUDE.mdslb-cn/cyberquant-mcpInstructions file03mo agoMITA543Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot