F9 Lore MCP
OfficialProvides tools to read, search, create, update, delete, and move notes and folders in an Obsidian vault, including granular editing of sections, headings, and frontmatter, vector search, grep, and string replacement.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
F9 Lore MCP
A plugin that hosts a Model Context Protocol (MCP) server, exposing vault operations via HTTP/SSE endpoints. This allows AI assistants like Claude Desktop, Claude.ai, and other MCP-compatible clients to read, search, and edit your vault.
Features
Note Operations
create_note - Create new notes with optional content
read_note - Read note contents (with fuzzy filename matching)
update_note - Replace note contents
delete_note - Delete notes (moves to trash)
move_or_rename_note - Move or rename notes within the vault
Folder Operations
list_folders - List folders in the vault
list_notes - List notes in the vault
create_folder - Create folders (including intermediate directories)
delete_folder - Delete folders (with optional force delete if not empty)
Granular Editing (Token-Efficient)
Instead of reading/writing entire files, these tools allow precise editing:
get_note_structure - Get headings, sections, list items, frontmatter with freshness token
read_section / read_heading_content / read_frontmatter - Read specific parts
update_section / update_heading_content / update_frontmatter - Update specific parts
delete_section - Remove a section
rename_heading - Change heading text or level
update_list_item - Update list item text or task status
insert_content - Insert content at specific positions
Vector Search
Semantic search across your vault using embeddings:
search - Find notes by meaning, not just keywords
reindex_vault - Force re-embed all files
refresh_index - Check for stale files and reindex
Three embedding provider options:
Ollama (default) - Local LLM, requires Ollama running
OpenAI - Cloud API, requires API key
TF-IDF - Keyword-based, fully offline, no external services
Text Search
grep - Search for text/regex patterns across notes (with context lines, path scoping)
str_replace - Find and replace strings across notes (with dry-run mode)
Other
ping - Health check
Related MCP server: Nexus MCP for Obsidian
Installation
From Source
Clone this repository into your vault's plugin directory:
cd <your-vault>/.obsidian/plugins/ git clone https://github.com/f9/f9-lore-mcp.git cd f9-lore-mcp npm install npm run buildEnable the plugin in Settings → Community Plugins → F9 Lore MCP
For Development
Clone and install dependencies:
git clone https://github.com/f9/f9-lore-mcp.git cd f9-lore-mcp npm installStart watch mode:
npm run devSymlink to your vault:
ln -s /path/to/f9-lore-mcp <vault>/.obsidian/plugins/f9-lore-mcpEnable the plugin in Obsidian Settings → Community Plugins
Configuration
Basic Settings
Port - HTTP server port (default: 3000)
Enable MCP server - Toggle the server on/off
Session timeout - Auto-close inactive sessions (default: 30 minutes)
HTTPS (Optional)
For clients that require TLS (like Claude Desktop with strict security):
Enable "Enable HTTPS" toggle
Paste your TLS certificate content
Paste your TLS private key content
Generate certificates with mkcert:
mkcert -install
mkcert localhost 127.0.0.1 ::1Vector Search Settings
Enable auto-indexing - Automatically embed files on changes
Embedding provider - Choose Ollama, OpenAI, or TF-IDF
Indexing delay - Debounce time before embedding (default: 10s)
For Ollama:
Install Ollama and run it locally
Configure URL (default:
http://localhost:11434)Select model (e.g.,
nomic-embed-text)
For OpenAI:
Enter your API key
Select model (text-embedding-3-small, text-embedding-3-large, or text-embedding-ada-002)
Optionally set custom endpoint for Azure OpenAI
For TF-IDF:
No configuration needed
Works fully offline
Keyword-based (less semantic than neural embeddings)
Using with Claude Desktop
The plugin settings show a copyable configuration snippet for claude_desktop_config.json. You'll need mcp-remote to bridge Claude Desktop to the HTTP endpoint:
{
"mcpServers": {
"f9-lore-my-vault": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://127.0.0.1:3000/mcp"]
}
}
}For HTTPS mode, add the environment variable:
{
"mcpServers": {
"f9-lore-my-vault": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://127.0.0.1:3000/mcp"],
"env": {
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}
}Quick Test
# Check if server is running
curl http://127.0.0.1:3000/health
# Start an SSE connection (in one terminal)
curl -N -H 'Accept: text/event-stream' http://127.0.0.1:3000/mcp
# Send a ping request (in another terminal)
curl -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ping"}}' \
http://127.0.0.1:3000/mcpMulti-Session Support
Multiple MCP clients can connect simultaneously. Each client gets its own isolated session with independent state. Sessions are:
Created on-demand when clients connect
Routed via
mcp-session-idheaderAutomatically cleaned up on disconnect or timeout
Visible in the status bar (e.g., "F9 MCP:3000 | 2 sessions")
Build Commands
npm run dev # Watch mode: rebuilds main.js on changes
npm run build # Production build: minified main.js
npm run version # Sync manifest.json version with package.jsonVersioning
Update package.json version, then sync manifest.json:
npm run versionFiles
manifest.json— Obsidian plugin manifestsrc/main.ts— Plugin entry pointsrc/mcp/host.ts— MCP server host (multi-session architecture)src/mcp/structure.ts— Note structure extractionsrc/mcp/editors.ts— Granular content editingsrc/mcp/utils.ts— Shared utilities (path normalization, error handling)src/mcp/tools/— Modular MCP tool definitionsbasic-ops.ts— Note CRUD operations (create, read, update, delete, move)folder-ops.ts— Folder operations (list, create, delete)structure-read.ts— Structure reading tools (get_note_structure, read_section, etc.)structure-write.ts— Structure editing tools (update_section, rename_heading, etc.)vector-search.ts— Vector search tools (search, reindex_vault, refresh_index)text-search.ts— Text search tools (grep, str_replace)index.ts— Tool registration orchestrator
src/vector/— Vector search subsystemstyles.css— Optional UI styles
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Token-efficient MCP memory for Markdown vaults. Tiered search, GraphRAG, AI memories.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides an MCP server that allows AI assistants to interact with Obsidian vaults, enabling reading/writing notes, managing metadata, searching content, and working with daily notes.37MIT
- AlicenseNot gradedqualityAmaintenanceTurns your Obsidian vault into an MCP-enabled workspace with tools for reading/writing notes, managing folders, running semantic searches, and maintaining long-term memory—all while keeping data local to your vault.160MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search, read, and append content to notes in an Obsidian vault via the MCP protocol.BSD Zero Clause
- AlicenseAqualityDmaintenanceEnables MCP-compatible AI hosts to read, search, link, and write notes in a local Obsidian vault with sandboxed file access.11MIT