obsidian-mcp-remote
Provides read/write access to a self-hosted Obsidian vault, with tools for reading, writing, patching, listing files, and searching the 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-mcp-remotesearch my vault for 'project roadmap' and list matching notes"
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-mcp-remote
A remote MCP server that gives Claude (Desktop, Code, or a Custom Connector) read/write access to a self-hosted Obsidian vault — no need to keep Obsidian running, no Local REST API plugin, works from any device.
Exposes the same five tools as the local Obsidian MCP setup: vault_read, vault_write,
vault_patch, vault_list, search_query — drop-in compatible.
How it works
The vault is a plain Git checkout on your VPS (e.g. auto-pulled from a private Gitea/GitHub repo).
This server mounts that checkout read-write and speaks MCP over HTTP.
Two auth zones, so you don't need OAuth just to use it from your own machine over Tailscale:
Internal (Tailscale network — Desktop-direct, Claude Code): a static bearer token.
External (public internet — Mobile/Web Custom Connectors): a real OAuth 2.0 server (PKCE S256 required, Dynamic Client Registration,
/oauth/authorizegated by a passkey or password).
Git is your rollback net: every write is a plain file write, revertable via
git reverton the vault repo like any other change.
Related MCP server: obsidian-mcp-complete
Quickstart
Requirements: Docker, a domain (only needed for the external/OAuth zone), a Tailscale network (only needed for the internal zone).
git clone <this-repo> obsidian-mcp-remote
cd obsidian-mcp-remote
npm run setup # generates .env with strong random secrets
# edit .env: fill in VAULT_PATH, TAILSCALE_IP, HOST_PORT, DOMAIN, OAUTH_CLIENT_REDIRECT_URI
docker compose up -d --build
curl http://<TAILSCALE_IP>:<HOST_PORT>/health # -> {"status":"ok"}npm run setup never overwrites an existing .env — pass --force if you deliberately want to
rotate every generated secret.
For the external/OAuth zone to be reachable from claude.ai (Mobile/Web) or over plain internet,
put a reverse proxy with a real TLS certificate in front of HOST_PORT (e.g. Nginx Proxy Manager
Let's Encrypt) and point
DOMAINat it. The internal/Tailscale zone works without any of that.
Connecting a client
Claude Code / anything that accepts a static bearer token (internal zone, over Tailscale):
{
"mcpServers": {
"obsidian": {
"type": "http",
"url": "http://<TAILSCALE_IP>:<HOST_PORT>/mcp",
"headers": { "Authorization": "Bearer <TOKEN_INTERNAL from .env>" }
}
}
}Claude Desktop (via mcp-remote, since Desktop doesn't speak Streamable HTTP directly):
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["mcp-remote@latest", "https://<DOMAIN>/mcp"]
}
}
}--header-only auth doesn't work here: mcp-remote always runs its OAuth discovery flow
regardless of flags, so Desktop goes through the external/OAuth zone (below), not TOKEN_INTERNAL.
First connection opens a browser to /oauth/authorize — log in with a passkey (if registered) or
the password. The issued refresh token keeps you logged in across restarts (see Passkey section).
claude.ai Custom Connector (Mobile/Web, external zone): Settings → Connectors → Add custom
connector → https://<DOMAIN>/mcp, with OAUTH_CLIENT_ID/OAUTH_CLIENT_SECRET from .env under
Advanced settings. Same /oauth/authorize login as Desktop above.
Passkey login (recommended)
/oauth/authorize accepts a WebAuthn passkey (Windows Hello, a phone's fingerprint sensor, a
hardware security key) instead of typing the password — not phishable the way a password is, and
usually faster. Register one once:
Visit
https://<DOMAIN>/webauthn/setup.Enter
OAUTH_PASSWORDto authorize the registration, then follow the browser's passkey prompt.From then on,
/oauth/authorizeshows a "Mit Passkey anmelden" button. The password field stays as a fallback if the passkey device isn't available.
Only one passkey is stored at a time (single-user tool) — registering a new one replaces the old
one. Requires the real public HTTPS DOMAIN; won't work against a raw Tailscale IP or plain HTTP.
Security notes
Never commit
.env— it's already in.gitignore, only.env.exampleis tracked.Rotate secrets periodically (
npm run setup --force+ restart), especially after sharing your screen, pasting a token into a chat, or any other accidental exposure.The OAuth password (
OAUTH_PASSWORD) is the only gate on the public/oauth/authorizeendpoint — rate-limited, but still a single factor. Use a long random value (the setup script generates one; don't replace it with something memorable).TOKEN_INTERNALis scoped to the Tailscale network by thedocker-compose.ymlport binding (${TAILSCALE_IP}:${HOST_PORT}:3000, never0.0.0.0) — don't change that binding without understanding you'd be exposing the internal token to the public internet.Read/write access means a leaked token lets someone read your whole vault, not just write to it. Git history protects against destructive edits, not against exfiltration.
Set
NTFY_TOPICin.envto get a push notification (via ntfy.sh, no account needed) whenever the rate limiter trips or a login attempt fails — otherwise you won't know someone's probing the endpoint. Pick an unguessable topic name; treat it like a secret.Dependabot is enabled on this repo (
.github/dependabot.yml) for npm and Docker base image updates. CodeQL (.github/workflows/codeql.yml) and gitleaks (.github/workflows/gitleaks.yml) run on every push/PR plus a weekly schedule for CodeQL.Dynamic Client Registration (
POST /register) only accepts loopback redirect URIs (http://localhost|127.0.0.1) — it's unauthenticated by design (RFC 7591), so accepting arbitraryhttps://targets would let anyone self-register a client and phish your password/passkey via a crafted/oauth/authorizelink, with the authorization code landing on their own server.Registered clients and issued tokens live in a plain JSON file (
OAUTH_STORE_PATH), not encrypted at rest. Accepted for this threat model — the host already holds.envin the clear — but worth knowing if you ever back up or move that volume: treat it like any other secrets file.npm run oauth:list/npm run oauth:revoke -- <client_id>inspect or remove a registered client and its tokens directly in the store file — the only way to review or undo a consent grant on a tool with no admin UI. Requires a container restart to take effect, since the running server only reads this file once at startup. DCR clients that never complete a token exchange within 30 days are pruned automatically on the next restart; the preregistered client never is.Rate limiting is in-memory per process and resets on every container restart — acceptable for a single-container deployment, but don't rely on it surviving a redeploy.
Development
npm install
npm test # node:test, no external test runner
npm run buildLicense
MIT
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
- Flicense-qualityDmaintenanceA local MCP server that wraps the Obsidian CLI to give AI assistants direct access to read, edit, and manage notes within an Obsidian vault. It enables advanced operations such as frontmatter property management, context-aware searching, and the execution of internal Obsidian commands.Last updated2
- AlicenseBqualityCmaintenanceLocal-first MCP server for Obsidian vaults with 66 tools for reading, writing, searching, and managing notes, tasks, graphs, and more. Works without Obsidian running and requires no plugins.Last updated66MIT
- Flicense-qualityBmaintenanceSelf-hosted MCP server that provides remote AI clients with read and write access to Obsidian vaults over HTTPS without needing the Obsidian desktop app running.Last updated2
- Alicense-qualityCmaintenanceMCP server that provides read and write access to an Obsidian vault by interacting directly with markdown files on disk. Supports searching, listing, reading, creating, editing, and appending notes without requiring any Obsidian plugins.Last updated3,505ISC
Related MCP Connectors
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
A MCP server built for developers enabling Git based project management with project and personal…
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/Sibo1505/obsidian-mcp-remote'
If you have feedback or need assistance with the MCP directory API, please join our Discord server