secondbrain-mcp
Allows an AI agent to list, search, read, and append to Markdown notes in an Obsidian vault, treating the vault as a typed tool surface.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@secondbrain-mcpsearch notes for deployment runbook"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
secondbrain-mcp
A tiny Model Context Protocol server that exposes a folder of Markdown notes to an AI agent. Instead of pasting files into the prompt, the model can list, search, read, and append to your notes through real tool calls.
I built this because most "second brain" setups (Obsidian, a Drive folder of Markdown, Notion exports) are just files on disk. The useful question is how an agent reads and writes them reliably without you babysitting the context window. MCP is the clean answer: the notes become a typed tool surface the model can call.
What MCP is, in one line
MCP is an open protocol that lets an LLM client (Claude Desktop, Claude Code, ...) discover and call external tools and data over a simple JSON-RPC channel — wire a capability in once, and any MCP-aware client can use it.
Related MCP server: obsidian_mcp
Tools
Tool | What it does |
| Every note with its title and size |
| Full-text search; returns the lines that match |
| Full text of one note |
| Append-only write — never silently rewrites |
Run it
pip install -r requirements.txt
python server.py # serves over stdioNotes live in ./notes. Point it elsewhere with SECONDBRAIN_DIR=/path/to/vault.
Connect it to Claude
Drop this into Claude Desktop's claude_desktop_config.json or a project .mcp.json
for Claude Code:
{
"mcpServers": {
"secondbrain": {
"command": "python",
"args": ["/abs/path/to/server.py"],
"env": { "SECONDBRAIN_DIR": "/abs/path/to/your/vault" }
}
}
}Then ask "search my notes for the deployment runbook" and the model calls
search_notes instead of guessing.
How it fits together
flowchart LR
A["Claude Desktop / Claude Code"] -- "MCP · JSON-RPC over stdio" --> B["secondbrain server"]
B --> C[("notes/*.md")]
B -. "list · search · read · append" .-> ADesign notes
Append-only writes.
append_noteadds; it never overwrites. An agent can capture a thought without ever silently destroying a note.Plain Markdown is the source of truth. No database, no lock-in — the same folder works in Obsidian or a Git repo.
stdio transport, so it drops into any local MCP client with zero network setup.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP-native notes and memory for ChatGPT, Claude, and other AI tools.
- TaprootOAuthcom.taproothq
Persistent memory layer for AI tools. Save and recall notes across Claude and other MCP clients.
Shared Markdown notes for MCP-compatible AI tools.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to search, read, create, and append Apple Notes using MCP tools, supporting bulk folder reads and tag search.17MIT
- FlicenseNot gradedqualityCmaintenanceEnables reading, writing, searching, and managing Obsidian vault notes through MCP tools and prompts, allowing AI agents to interact with local knowledge bases.-
- AlicenseAqualityBmaintenanceProvides an AI agent with a searchable markdown notes vault, offering tools to create, read, list, search, update, and delete notes stored as plain .md files.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with a Markdown-based knowledge base with backlinks, tags, and full-text search, supporting note creation, reading, updating, renaming, and deletion through MCP tools.13MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/qingleiw/secondbrain-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server