Borrowing it
Nothing to install: this file belongs to lidonation/Cardano-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.
curl -O https://raw.githubusercontent.com/lidonation/Cardano-mcp/main/GEMINI.mdgit clone --depth 1 https://github.com/lidonation/Cardano-mcpWrote 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/lidonation/cardano-mcp/gemini-md)<a href="https://agentmods.dev/instructions/lidonation/cardano-mcp/gemini-md"><img src="https://agentmods.dev/badge/instructions/lidonation/cardano-mcp/gemini-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.
<a href="https://agentmods.dev/instructions/lidonation/cardano-mcp/gemini-md"><img src="https://agentmods.dev/badge/instructions/lidonation/cardano-mcp/gemini-md.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.03036 | $0.03036 |
| Opus 5.5 | $0.01214 | $0.01214 |
| Sonnet 5.5 | $0.00607 | $0.00607 |
| Haiku 4.5 | $0.00304 | $0.00304 |
Grade A, and why
Cardano-mcp GEMINI.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.
How it starts
The opening of the file, as written. The whole thing — 302 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cardano MCP — Project Brain
Read this fully before touching any file. This is the single source of truth for architecture, decisions, and context.
What we are building
A production-grade MCP server that gives AI agents like Claude deep, idiomatic access to the Cardano blockchain — smart contracts, UTxOs, tokens, indexers, and on-chain governance. The goal: a developer using Claude should be able to build a full Cardano dApp without ever leaving their AI coding session.
This fills a real gap. Solana has 40+ MCPs. EVM has 30+. Cardano has nothing dedicated.
Tech stack — NEVER deviate without updating this file
| Layer | Choice | Why |
|---|---|---|
| Language | TypeScript (strict) | MCP SDK is TS-first, best type safety |
| MCP SDK | @modelcontextprotocol/sdk latest |
Official Anthropic SDK |
| Schema validation | zod |
MCP SDK expects Zod schemas |
| Primary blockchain API | Koios (api.koios.rest/api/v1) |
Free, decentralized, full governance support |
| Secondary API | Blockfrost | Widest coverage, best SDK ecosystem |
| High-perf UTxO queries | Maestro (mainnet.gomaestro-api.org/v1) |
9x faster multi-address UTxO queries |
| Event watching | Kupo (local sidecar) | Pattern-based UTxO watching, persists across restarts |
| Smart contract language | Aiken awareness | Inject context, validate snippets via CLI |
| Off-chain tx building | Mesh SDK (@meshsdk/core) |
Best TS tx building for Cardano |
| Runtime | Node.js 20+ LTS | Required by MCP SDK |
| Package manager | pnpm | Faster, strict deps |
| Testing | vitest | Fast, ESM-native |
Project structure
cardano-mcp/
├── CLAUDE.md ← YOU ARE HERE
├── package.json
├── tsconfig.json
├── .env.example
├── src/
│ ├── index.ts ← MCP server entry point, registers all modules
│ ├── config.ts ← env vars, network selection (mainnet/preprod/preview)
│ ├── lib/
│ │ ├── koios.ts ← Koios API client with retry + rate limiting
│ │ ├── blockfrost.ts ← Blockfrost client
│ │ ├── maestro.ts ← Maestro client
│ │ ├── kupo.ts ← Kupo client
│ │ └── cbor.ts ← CBOR decode/encode utilities
│ ├── modules/
│ │ ├── query/ ← Phase 1: blockchain queries
│ │ │ └── index.ts
│ │ ├── txbuilder/ ← Phase 1: transaction building
│ │ │ └── index.ts
│ │ ├── tokens/ ← Phase 1: native assets & NFTs
│ │ │ └── index.ts
│ │ ├── contracts/ ← Phase 2: Aiken + smart contract tooling
│ │ │ └── index.ts
│ │ ├── indexer/ ← Phase 2: Kupo + Yaci Store
│ │ │ └── index.ts
│ │ └── governance/ ← Phase 3: CIP-1694 full governance
│ │ └── index.ts ← ALREADY WRITTEN — see src/governance/index.ts
│ ├── resources/
│ │ ├── eutxo-context.md ← Injected context: eUTxO model explainer
│ │ ├── governance-context.md← Injected context: CIP-1694 explainer
│ │ └── aiken-stdlib.md ← Aiken standard library quick reference
│ └── types/
│ └── cardano.ts ← Shared TypeScript types
├── tests/
│ ├── query.test.ts
│ ├── governance.test.ts
│ └── fixtures/ ← Sample API responses for mocking
└── docs/
├── governance.md ← ALREADY WRITTEN
└── getting-started.md
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.
- 2mo ago First seen · 302 lines · 3,036 tokens per session scan A ac72d8a4cafe
Cardano-mcp GEMINI.md is an instructions file published in the GitHub repository lidonation/Cardano-mcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 3,036 tokens to every session, about $0.0121 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.
Cardano-mcp GEMINI.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Cardano-mcp GEMINI.mdlidonation/Cardano-mcp | Instructions file | 2 | 1mo ago | MIT | A | 3,036 | Gemini CLI |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |