Obsidian MCP
Enables AI agents to manage Obsidian vaults through full CRUD operations, wikilink management, and section-level manipulation. It supports frontmatter editing, tag-based searching, and automated link updates to maintain vault integrity.
README
Obsidian MCP
MCP server for Obsidian vault management. Designed for AI agents (Claude Desktop, Claude Code).
Features
- Full CRUD operations on notes
- Wikilink management (auto-update on rename/delete)
- Frontmatter manipulation
- Tag-based and content search
- Backlinks discovery
- Section-level operations
Installation
poetry install
Configuration
Set the vault path via environment variable:
export OBSIDIAN_VAULT_PATH="/path/to/your/obsidian/vault"
# WSL example (Windows vault accessed from WSL)
export OBSIDIAN_VAULT_PATH="/mnt/c/Users/username/Documents/Obsidian/my_vault"
Claude Desktop Configuration
Add to claude_desktop_config.json:
Linux/macOS:
{
"mcpServers": {
"obsidian": {
"command": "bash",
"args": ["-c", "cd /path/to/obsidian-mcp && poetry run obs-mcp"],
"env": {
"OBSIDIAN_VAULT_PATH": "/path/to/your/obsidian/vault"
}
}
}
}
Windows (via WSL):
{
"mcpServers": {
"obsidian": {
"command": "wsl",
"args": [
"-e", "bash", "-c",
"cd /path/to/obsidian-mcp && poetry run obs-mcp"
],
"env": {
"OBSIDIAN_VAULT_PATH": "/mnt/c/Users/username/Documents/Obsidian/my_vault"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
read_note(name) |
Read note content (frontmatter + body) |
create_note(name, content?, frontmatter?) |
Create note |
append_note(name, text) |
Append to note |
update_note(name, content) |
Replace body, preserve frontmatter |
delete_note(name, dry_run?) |
Delete (links updated to [[name (deleted)]]) |
rename_note(old_name, new_name, dry_run?) |
Rename + update wikilinks |
search_notes(query, mode?) |
Search (name, name_partial, content, tag) |
get_links(name, direction?) |
Get incoming/outgoing links |
get_note_metadata(name) |
Get frontmatter + links without body |
set_frontmatter(name, key, value) |
Set frontmatter key |
add_tag(name, tag) |
Add tag to note |
remove_tag(name, tag) |
Remove tag from note |
list_notes(limit?, offset?) |
List all notes (paginated) |
replace_text(name, old, new, replace_all?) |
Replace text in note |
insert_text(name, text, before?, after?) |
Insert text at position |
read_section(name, section) |
Read section by heading |
append_section(name, section, text) |
Append to section |
update_section(name, section, content) |
Replace section content |
delete_section(name, section) |
Delete section |
get_headings(name) |
Get all headings |
find_broken_links() |
Find broken wikilinks |
get_help() |
Get tool descriptions |
Vault Structure
- Flat structure (all
.mdfiles in vault root) - YAML frontmatter with
---delimiters - Wikilinks:
[[Note Name]] - Tags in frontmatter:
tags: [tag1, tag2] .trash/for deleted notes.obsidian/ignored
Development
# Run tests
poetry run pytest tests/spec/core/ -v
# Lint
poetry run ruff check src/
poetry run mypy src/
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.