Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/sbroenne/mcp-server-excel/mcp-server-guidegit clone --depth 1 https://github.com/sbroenne/mcp-server-excelWrote 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.
[](https://agentmods.dev/instructions/sbroenne/mcp-server-excel/mcp-server-guide)<a href="https://agentmods.dev/instructions/sbroenne/mcp-server-excel/mcp-server-guide"><img src="https://agentmods.dev/badge/instructions/sbroenne/mcp-server-excel/mcp-server-guide.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00538 | $0.00538 |
| Opus 5 | $0.00269 | $0.00269 |
| Sonnet 5 | $0.00108 | $0.00108 |
| Haiku 4.5 | $0.00054 | $0.00054 |
Grade A, and why
mcp-server-excel mcp-server-guide.instructions.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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP Server development
MCP tool methods are static and synchronous. They route to the in-process
ExcelMcpService; do not add a named-pipe hop or duplicate Core behavior.
Tool pattern
Use the existing generated registry and shared boundaries:
public static string ExcelFeature(
FeatureAction action,
string? session_id = null,
CancellationToken cancellationToken = default)
{
using var cancellationScope =
ExcelToolsBase.PushCancellationToken(cancellationToken);
return ExcelToolsBase.ExecuteToolAction(
"feature",
ServiceRegistry.Feature.ToActionString(action),
() => ServiceRegistry.Feature.RouteAction(
action,
session_id,
ExcelToolsBase.ForwardToServiceFunc));
}
ServiceRegistryand generated routes are preferred over hand-written action dispatch.- Keep hand-written branches only for genuine special cases such as atomic no-session operations or extra MCP metadata.
- Pass the SDK cancellation token through
PushCancellationToken. - Use
ExcelToolsBase.ExecuteToolActionfor consistent telemetry and error serialization.
Errors and JSON
- Tool execution failures return structured JSON with
success: falseandisError: true. - Invalid arguments and unknown actions may throw the established argument or MCP protocol exception.
- Do not inspect a Core failure and throw a second generic exception; preserve the Service response's category, context, HRESULT, and retry information.
- Use shared
JsonOptions; never construct JSON strings manually. - Keep stdout exclusively for MCP JSON-RPC. Logs and diagnostics go to stderr.
Schema and descriptions
- C# interface parameter names are camelCase; generated MCP names are snake_case.
- Keep action enums and
ToActionStringmappings exhaustive. - Tool and parameter descriptions should state server-specific behavior, constraints, and disambiguation. Do not duplicate types or enum values already visible in the schema.
- Avoid emojis in XML documentation and generated LLM guidance.
- Keep destructive/read-only metadata accurate.
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.
- 5d ago First seen · 73 lines · 538 tokens per session scan A fb4b42c0df3c
mcp-server-excel mcp-server-guide.instructions.md is an instructions file published in the GitHub repository sbroenne/mcp-server-excel (656 stars, last pushed today), licensed MIT. It adds 538 tokens to every session, about $0.0027 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-30.
Other instructions, from other repositories
mcp-server-powerpoint copilot-instructions.md
Copilot instructions for sbroenne/mcp-server-powerpoint, covering project instructions — powerpointmcp, critical files (read these first), sister projects, what is powerpointmcp? and session model (mcp server).
mcp-server-powerpoint architecture-patterns.instructions.md
Instructions for sbroenne/mcp-server-powerpoint, covering architecture patterns, .net class design (mandatory), layered architecture (critical), command pattern and structure (per domain).
mcp-server-powerpoint critical-rules.instructions.md
Instructions for sbroenne/mcp-server-powerpoint, covering critical rules - must follow, rule 1: success/errormessage invariant, rule 1b: no exception suppression in core, rule 30: real-com integration tests only, strict tdd and rule: 1-based indexing everywhere.
mcp-server-powerpoint mcp-server-guide.instructions.md
Instructions for sbroenne/mcp-server-powerpoint, covering mcp server development guide, llm-facing content rules, two kinds of tools: hand-written vs. generated, implementation pattern: single hand-written dispatch tool and error handling (mandatory).
mcp-server-powerpoint testing-strategy.instructions.md
Instructions for sbroenne/mcp-server-powerpoint, covering testing strategy, strict tdd (red → green), test project layout, serialization is mandatory and trait tagging (required for surgical filtering).
mcp-server-amazon CLAUDE.md
Instructions for rigwild/mcp-server-amazon, covering claude.md, development commands, install dependencies (use -d flag for puppeteer), build typescript to javascript and clean mock html files.