Obsidian remote MCP server
Provides tools for reading and writing notes, searching, managing directories/tags, and moving or deleting notes in an Obsidian vault.
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., "@Obsidian remote MCP serversearch my vault for notes about project Alpha"
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.
Obsidian remote MCP server
Reach your Obsidian vault from anywhere, in Claude.ai and Claude Code, without Obsidian running and without the vault on the machine you are working from. Wraps obsidian-mcp in an OAuth 2.1 authorization server so it can be added as a Claude.ai custom connector, and keeps static bearer tokens working for Claude Code.
Requirements
An always-on Linux machine, such as a home server, a NAS or a VPS
Your vault synced to it with Obsidian Sync via Headless Sync, Syncthing, Obsidian Git or Nextcloud
Node.js 18 or newer
An HTTPS reverse proxy or tunnel
Related MCP server: Obsidian MCP Server
Features
Read and write your vault from Claude.ai and Claude Code
OAuth 2.1 with PKCE, dynamic client registration, and refresh token rotation
Static bearer token accepted alongside OAuth, so both clients work at once
Works with Obsidian closed - the vault is read from disk, no plugins needed
Serves multiple vaults from one endpoint
No inbound firewall port needed when paired with a Cloudflare Tunnel
How it works
obsidian-mcp (stdio)
-> supergateway stdio to Streamable HTTP, :8420
-> auth-server.js OAuth 2.1 + token check, :8422
-> nginx :8421
-> Cloudflare Tunnel https://obsidian-mcp.example.comOnly the auth server is reachable from outside. Port 8420 speaks no authentication at all and stays bound to localhost.
Claude.ai custom connectors accept OAuth or, in a beta not everyone has, a fixed request header. Claude Code accepts a header directly. This serves both: an OAuth 2.1 flow per the MCP 2025-06-18 authorization spec, and a static token read from a file.
Install
Run this on the machine that holds the vault. It asks for your vault path and hostname, installs the code, generates a password and a token, and writes the service files ready to start.
curl -fsSL https://raw.githubusercontent.com/rollecode/obsidian-remote-mcp/main/install.sh | bashInstall with Claude Code
Claude Code can do the whole thing, including the tunnel and the reverse proxy, which the installer deliberately leaves alone because every setup differs. Start it in an empty directory:
claudeThen give it this:
Install https://github.com/rollecode/obsidian-remote-mcp on this machine.
Read the repository's README for the architecture and the manual setup steps, then work out what applies here rather than assuming. Specifically:
1. Find my Obsidian vault and confirm the path with me before using it.
2. Install the code and dependencies, set a login password, and generate a static token for Claude Code.
3. Install and start both systemd services with the real paths for this machine.
4. Expose it over HTTPS on a hostname I give you. Check what I already run - Cloudflare Tunnel, nginx, Caddy, Traefik - and use that rather than installing something new. Never open a router port without asking me first.
5. Verify it end to end: the discovery endpoints return valid JSON, an unauthenticated request gets 401 with a WWW-Authenticate header, and the static token gets a 200 from the MCP endpoint.
6. Print the Claude.ai connector URL and the exact claude mcp add command for Claude Code, and tell me the password.
This exposes read and write access to my notes over the internet, so tell me anything that weakens that before you do it.Manual setup
Install first:
git clone https://github.com/rollecode/obsidian-remote-mcp.git
cd obsidian-remote-mcp
npm installThen set a password. This is what you type on the OAuth login page, and only its scrypt hash is stored.
node set-password.js 'your-password-here'Generate a static token if you want to use Claude Code, which can send a header directly and skip the login page.
mkdir -p ~/.config/obsidian-mcp
openssl rand -hex 32 > ~/.config/obsidian-mcp/token
chmod 600 ~/.config/obsidian-mcp/tokenInstall the services, replacing YOUR_USER, the vault path and ISSUER in the unit files with your own.
sudo cp systemd/*.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now obsidian-mcp obsidian-mcp-authExpose it. Add the nginx site from nginx/obsidian-mcp.conf, then point a Cloudflare Tunnel at http://localhost:8421. Any HTTPS reverse proxy works, but a tunnel avoids opening a router port.
ingress:
- hostname: obsidian-mcp.example.com
service: http://localhost:8421cloudflared tunnel route dns YOUR_TUNNEL obsidian-mcp.example.com
sudo systemctl restart cloudflaredFinally, connect. In Claude.ai go to Customize → Connectors → Add custom connector, enter https://obsidian-mcp.example.com/mcp and leave Client ID and Client Secret blank, since the server registers Claude automatically. You will be asked for the password you set earlier. Remember to enable the connector in each conversation from the + menu.
For Claude Code, use the static token.
claude mcp add --transport http obsidian https://obsidian-mcp.example.com/mcp \
--header "Authorization: Bearer $(cat ~/.config/obsidian-mcp/token)"Tools
Provided by obsidian-mcp.
Tool | Description |
| Read a note |
| Create a note |
| Edit a note |
| Delete a note, to trash unless |
| Move or rename a note |
| Full text search |
| Create a folder |
| Add tags to a note |
| Remove tags from a note |
| Rename a tag across the vault |
| List and manage tags |
| List configured vaults |
Most tools take {vault, folder, filename}. delete-note takes {vault, path} instead.
Endpoints
Path | Purpose |
| The MCP endpoint, requires a token |
| RFC 9728 resource metadata |
| RFC 8414 server metadata |
| RFC 7591 dynamic client registration |
| Login page and authorization code issuance |
| Token exchange and refresh |
| Health check |
Configuration
Variable | Default | Purpose |
| required | Public HTTPS base URL, no trailing slash |
|
| Port the auth server listens on |
|
| Where supergateway is listening |
|
| Password hash, static token, OAuth database |
Security
Authorization codes are single use and expire in 60 seconds
PKCE is required and only
S256is acceptedRedirect URIs are matched exactly against registered values
Refresh tokens rotate on every use
Tokens are stored as SHA-256 hashes, so the database holds no usable credentials
Tokens are bound to the resource they were issued for and rejected elsewhere
The password is stored as a scrypt hash, compared in constant time
This grants write access to your vault over the internet. Use a strong password, keep ISSUER on HTTPS, and remember that anyone holding the static token has the same access without the login page.
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 Servers
- FlicenseBquality-maintenanceEnables AI assistants like Claude to read, search, create, and manage notes in Obsidian vaults, with features for link analysis, tag management, daily notes, templates, and optional Google Calendar integration. Provides comprehensive vault operations including batch updates, backlinks discovery, and secure file management with path traversal protection.311
- Flicense-quality-maintenanceEnables Claude to read, write, search, and manage Obsidian vault notes with Git-backed sync support for multi-device access and extensible AI workflows.6,104
- AlicenseAqualityCmaintenanceEnables Claude Code read/write access to an Obsidian vault, including creating, editing, searching, and browsing notes.8MIT
- Alicense-qualityDmaintenanceEnables Claude Desktop to interact with an Obsidian vault through the Local REST API, allowing file listing, reading, searching, creating, and updating markdown notes.6,104Apache 2.0
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
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/rollecode/obsidian-remote-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server