excel-mcp-server: Instructions file for Claude Code

CLAUDE.md

excel-mcp-server CLAUDE.md is an instructions file for Claude Code from TangentDomain/excel-mcp-server. It costs 1,013 tokens per session, scanned A, original, MIT.

Project instructions for an Excel MCP server, a program that lets an AI use tools to work with Excel configuration files. The instructions describe its Python structure, SQL support, tool-to-code mapping, and tests.

In plain words
What is it for?
Use them when developing or testing Excel queries and updates, including joins across files, grouped data, window functions, and backup or validation behavior.
Why use it?
They give an agent the project’s conventions and limits, reducing incorrect edits or unsupported SQL queries.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md.

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

Reuse

Borrowing it

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

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 excel-mcp-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tangentdomain/excel-mcp-server/claude-md.svg)](https://agentmods.dev/instructions/tangentdomain/excel-mcp-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/tangentdomain/excel-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/tangentdomain/excel-mcp-server/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,013 This file is loaded in full into every session.
When invoked 1,013 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.01013 $0.01013
Opus 5 $0.00507 $0.00507
Sonnet 5 $0.00203 $0.00203
Haiku 4.5 $0.00101 $0.00101

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

Security

Grade A, and why

excel-mcp-server 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 8d 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 · 96 lines

How it starts

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

Excel MCP Server

游戏开发专用 Excel 配置表 MCP 服务器。SQL-over-Excel 引擎,35 个工具,支持高级 SQL 查询、批量操作、跨文件 JOIN。

技术栈

  • Python 3.10+ / FastMCP / openpyxl / sqlglot
  • 测试: pytest + pytest-timeout + pytest-xdist
  • Lint: ruff (format + check)
  • 版本: 1.16.0

目录结构

src/excel_mcp_server_fastmcp/   # 主包
  api/       # SQL 执行引擎(query/update/insert/delete)
  core/      # Excel 操作核心(read/write/backup)
  models/    # 数据模型
  utils/     # 工具函数
  calibrator/ # SQLite 交叉校验工具
  verification/ # baseline 驱动验证
tests/
  invariants/  # 不变量测试(INV-1~32)
  test_data/  # 测试数据
scripts/
  pre_commit_check.sh  # 提交前检查
docs/
  SQL_PRINCIPLES.md    # SQL 标准遵循原则

MCP 工具 → Python API 映射

MCP 工具 Python API
excel_query execute_advanced_sql_query
excel_update_query execute_advanced_update_query
excel_insert_query execute_advanced_insert_query
excel_delete_query execute_advanced_delete_query

SQL 核心原则

只支持 SQL 标准支持的功能。 SQLite 3.x 为真值来源,calibrator 交叉校验。

  • 支持: 窗口函数、JOIN、聚合、CTE、子查询
  • 不支持: WHERE 引用窗口函数别名、SELECT 别名在 WHERE 中
  • SQL 执行顺序: FROM → JOIN → WHERE → GROUP BY → HAVING → 窗口函数 → SELECT → ORDER BY → LIMIT

API 契约

所有工具返回 {success: bool, data: list, message: str}

  • success=Falsedata 为空列表,message 非空且不含堆栈
  • affected_rows 必须精确等于实际变更行数

不变量体系

32 条不变量,三层分层。详见 .claude/skills/INVARIANT-DRIVEN-DEV.md

L1 外部真值(4条): INV-1 结果结构 / INV-2 SQL对齐 / INV-3 文件完整 / INV-4 行数守恒
L2 架构原则(5条): INV-5~9 失败安全/错误分类/幂等读取/LIMIT/聚合语义
L3 具体不变量(23条): INV-10~32 窗口函数/空表/写操作/SQL边界

判据执行

python -m pytest tests/invariants/ -q          # 全量(<60s)
python -m pytest tests/invariants/ -k "smoke"   # 烟雾(<10s)

当前状态: 154 passed, 3 skipped, 收敛评级 C。

代码规范

  • 向量化优先: pd.Series 而非逐行
  • 分发表用 tuple 不用 frozenset
  • 异常回退: 类型转换失败时逐行 fallback
  • 版本更新: __init__.py + pyproject.toml 同步

部署检查

ruff check src/ tests/ && ruff format --check src/ tests/
python -m pytest tests/invariants/ -q --tb=short --timeout=30

Enforcement

Read the full file on GitHub · 96 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. 8d ago First seen · 96 lines · 1,013 tokens per session scan A e06ee1cf9a2b

Subscribe to this mod's changes

excel-mcp-server CLAUDE.md is an instructions file published in the GitHub repository TangentDomain/excel-mcp-server (10 stars, last pushed 1mo ago), licensed MIT. It adds 1,013 tokens to every session, about $0.0051 per session on Opus 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

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