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.
git clone --depth 1 https://github.com/dstotijn/mcp-cbs-cijfers-open-dataWrote 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/rules/dstotijn/mcp-cbs-cijfers-open-data/go-mcp)<a href="https://agentmods.dev/rules/dstotijn/mcp-cbs-cijfers-open-data/go-mcp"><img src="https://agentmods.dev/badge/rules/dstotijn/mcp-cbs-cijfers-open-data/go-mcp/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.
<a href="https://agentmods.dev/rules/dstotijn/mcp-cbs-cijfers-open-data/go-mcp"><img src="https://agentmods.dev/badge/rules/dstotijn/mcp-cbs-cijfers-open-data/go-mcp.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00000 | $0.01016 |
| Opus 5 | $0.00000 | $0.00508 |
| Sonnet 5 | $0.00000 | $0.00203 |
| Haiku 4.5 | $0.00000 | $0.00102 |
Grade A, and why
go-mcp 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 10d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- go-mcp — 95% identical, 19 lines differ
How it starts
The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Description
This rule provides guidelines for working with the Model Context Protocol (MCP) in Go applications using the go-mcp library. MCP is a protocol for AI assistants to interact with external tools and services.
Rule
When working with MCP in Go:
MCP Server Setup
- Use
mcp.NewServer()with appropriate configuration options to create a new MCP server - Configure transports based on requirements (stdio, HTTP/JSON-RPC, SSE)
- Always handle graceful shutdown of the server
- Use context for cancellation and timeouts
- Register all tools before starting the server
Tool Implementation
- Define tool parameters as Go structs with JSON tags
- Add descriptive comments to struct fields for parameter documentation
- Use
mcp.CreateTool()to create new tools with proper definitions - Focus on business logic in tool handlers (validation is automatic)
- Return appropriate
mcp.CallToolResultobjects with clear content
Content Types
- Use appropriate content types (
mcp.TextContent,mcp.JSONContent, etc.) - Structure complex responses using multiple content objects
- Set the
IsErrorflag when returning error results - Use helper functions for common response patterns
Context Handling
- Pass context through to all tool handlers
- Respect context cancellation in long-running operations
- Use context timeouts for external API calls
- Add appropriate values to context when needed
Error Handling
- Return error results rather than panicking
- Provide clear, user-friendly error messages
- Include relevant details in error messages
- Use helper functions for creating error responses
Testing
- Write unit tests for tool handlers
- Mock external dependencies in tests
- Test both success and error cases
- Use table-driven tests for multiple scenarios
Implementation
- The Cursor IDE will enforce this rule by:
- Providing suggestions for MCP implementation
- Highlighting potential issues in MCP code
- Offering refactoring options to improve code quality
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.
- 10d ago First seen · 149 lines · 1,016 tokens per session scan A cf3e31a8bdff
go-mcp is a cursor rule published in the GitHub repository dstotijn/mcp-cbs-cijfers-open-data (8 stars, last pushed 1y ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,016 tokens. 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.
Other cursor rules, from other repositories
backend
You are an expert in Go, Gin, Gorm, Gen, Cosy (https://cosy.uozi.org/) with a deep understanding of best practices and performance optimization techniques in these technologies.
code-style
Formatting, lint, comments language.
20-testing-generated-and-structure
Testing expectations, generated-file boundaries, and CLI structure contract.
shared-libraries
Shared libraries - condition framework, inventory containers, file-backed DB, itinerary, references.
go-conventions
Go conventions for all Go code (modules, naming, errors, logging, metrics).
go-grpc-service-rule
A set of Chinese-language rules for implementing gRPC services in Go. gRPC is a way for software services to communicate using defined messages and procedures.