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/vasallo94/obsidian-mcp-server/agents-mdgit clone --depth 1 https://github.com/Vasallo94/obsidian-mcp-serverWrote 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/vasallo94/obsidian-mcp-server/agents-md)<a href="https://agentmods.dev/instructions/vasallo94/obsidian-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/vasallo94/obsidian-mcp-server/agents-md.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.02447 | $0.02447 |
| Opus 5 | $0.01223 | $0.01223 |
| Sonnet 5 | $0.00489 | $0.00489 |
| Haiku 4.5 | $0.00245 | $0.00245 |
Grade A, and why
obsidian-mcp-server AGENTS.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 — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Context file for AI coding agents working on this repository.
Essential Commands
# Install dependencies (ALWAYS uv, NEVER pip)
make install # uv sync
# Run MCP server locally
make dev # uv run obsidian-mcp-server
# Testing
make test # uv run pytest tests/
make coverage # uv run pytest --cov=obsidian_mcp --cov-report=term-missing tests/
# Linting & formatting
make lint # uv run ruff check . && uv run pyright .
make format # uv run ruff check --fix . && uv run ruff format .
# Pre-commit hooks (ruff, pyright, pylint, bandit + general checks)
make hooks # uv run pre-commit install
make check # uv run pre-commit run --all-files
Package Management — CRITICAL
- ONLY use
uv, NEVERpiporuv pip install - Add dependencies:
uv add package - Add dev dependencies:
uv add --dev package - Add optional RAG deps:
uv sync --extra rag - Run tools:
uv run tool - FORBIDDEN:
pip install,uv pip install,@latestsyntax
Testing
- Framework:
pytestwithanyiofor async tests (NOT asyncio) - Single test:
uv run pytest tests/test_basic.py::TestClassName::test_name -v - Coverage:
uv run pytest tests/ --cov=obsidian_mcp - CI minimum coverage: 25%
- All async tests must use
anyiofixtures, notasyncio
Architecture
Core Concept
MCP (Model Context Protocol) server built with FastMCP that exposes Obsidian vault operations as tools, resources, and prompts. Acts as a bridge between AI assistants (Claude Desktop, Cursor, Claude Code, Cline, etc.) and a user's Obsidian knowledge base.
Key Principles
- Vault-Agnostic: Auto-detects vault structure. User config lives in
{vault}/.agents/vault.yaml, not here. - Skills System: AI personas loaded from the user's vault at
{vault}/.agents/skills/. Each skill hasSKILL.mdwith YAML frontmatter. - Separation of Concerns: Tool registration (
tools/*.py) → Business logic (tools/*_logic.py) → Utilities (utils/*.py). - Security Model: Path validation via
.forbidden_pathsand vault config. All file ops go throughutils/security.py. - Optional RAG: Semantic search requires extra deps (
uv sync --extra rag). ChromaDB-based vector indexing insemantic/.
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 · 221 lines · 2,447 tokens per session scan A a284ac20b894
obsidian-mcp-server AGENTS.md is an instructions file published in the GitHub repository Vasallo94/obsidian-mcp-server (9 stars, last pushed 3d ago), licensed MIT. It adds 2,447 tokens to every session, about $0.0122 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.
Other instructions, from other repositories
obsidian-mcp-server AGENTS.md
AGENTS.md instructions for cyanheads/obsidian-mcp-server, covering agent protocol, what's next?, core rules, patterns and tool — obsidianlisttags.
obsidian-mcp-plugin CLAUDE.md
Claude Code instructions for aaronsb/obsidian-mcp-plugin, covering claude development guidelines for obsidian mcp plugin, project context, code quality guidelines, solid principles application and architecture patterns.
enquire-mcp AGENTS.md
AGENTS.md instructions for oomkapwn/enquire-mcp, covering agents.md, tl;dr, architecture (5-minute orientation), conventions and typescript.
obsidian-pkm-plugin CLAUDE.md
Instructions for AdrianV101/obsidian-pkm-plugin, covering pkm: 01-projects/obsidian-mcp, claude.md, project overview, commands and install dependencies.
mdevolved AGENTS.md
AGENTS.md instructions for msinclair25/mdevolved, covering mdevolved agent instructions, mission, instruction precedence, non-negotiable product boundaries and repository shape.
kioku AGENTS.md
AGENTS.md instructions for sandovaldavid/kioku, covering kioku agent operating manual, repository scope, source-of-truth order, current verified snapshot and branch and pull-request workflow.