{"id":48102732,"url":"https://github.com/klutchell/obsidian-mcp-fly","last_synced_at":"2026-04-04T15:45:52.967Z","repository":{"id":341887061,"uuid":"1169553447","full_name":"klutchell/obsidian-mcp-fly","owner":"klutchell","description":"Run an MCP server for your Obsidian vault on Fly.io","archived":false,"fork":false,"pushed_at":"2026-03-28T08:50:06.000Z","size":15,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T13:23:18.952Z","etag":null,"topics":["fly-io","mcp","oauth2","obsidian","obsidian-sync","vault-sync"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/klutchell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-28T21:25:52.000Z","updated_at":"2026-02-28T21:26:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/klutchell/obsidian-mcp-fly","commit_stats":null,"previous_names":["klutchell/obsidian-mcp-fly"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/klutchell/obsidian-mcp-fly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Fobsidian-mcp-fly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Fobsidian-mcp-fly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Fobsidian-mcp-fly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Fobsidian-mcp-fly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klutchell","download_url":"https://codeload.github.com/klutchell/obsidian-mcp-fly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Fobsidian-mcp-fly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31403973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fly-io","mcp","oauth2","obsidian","obsidian-sync","vault-sync"],"created_at":"2026-04-04T15:45:52.143Z","updated_at":"2026-04-04T15:45:52.903Z","avatar_url":"https://github.com/klutchell.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Obsidian MCP on Fly.io\n\nRun an [MCP server][vault-sync] for your Obsidian vault on Fly.io.\nAI assistants (Claude.ai, etc.) can read, write, and search your\nvault over HTTPS with OAuth 2.1 authentication.\n\n[vault-sync]: https://github.com/alexjbarnes/vault-sync\n\n## Architecture\n\nSingle container with two processes managed by a shell entrypoint:\n\n- **ob sync** — [obsidian-headless][ob] keeps a local copy of your\n  vault in sync with Obsidian's servers\n- **vault-sync** — Serves the local vault files over MCP\n  with OAuth 2.1 auth\n\n[ob]: https://www.npmjs.com/package/obsidian-headless\n\nBoth share a persistent volume at `/data`.\n\n```text\n┌──────────────────────────────────────────┐\n│  Container (node:24-bookworm-slim)       │\n│  entrypoint.sh                           │\n│                                          │\n│  ┌─────────────┐  ┌──────────────┐       │\n│  │ ob sync     │  │ vault-sync   │       │\n│  │ Node.js CLI │  │ Go binary    │       │\n│  └──────┬──────┘  └──────┬───────┘       │\n│         └────────┬───────┘               │\n│                  │                       │\n│  ┌───────────────┴───────────────┐       │\n│  │  Fly.io Persistent Volume     │       │\n│  │  /data/vault     (vault files)│       │\n│  │  /data/.vault-sync (state db) │       │\n│  └───────────────────────────────┘       │\n│                                          │\n│  Exposed: :8090 (MCP only)               │\n└──────────────────────────────────────────┘\n```\n\n## Prerequisites\n\n- [Fly.io CLI](https://fly.io/docs/flyctl/install/) (`flyctl`)\n- [Docker](https://docs.docker.com/get-docker/) (for local testing)\n- [Node.js](https://nodejs.org/) 22+ (for initial auth token)\n- An [Obsidian Sync](https://obsidian.md/sync) subscription\n\n## First-Time Auth Setup\n\nObsidian requires an interactive login to obtain an auth token. Do this once locally:\n\n```bash\nnpm install -g obsidian-headless\nob login\n```\n\nOr with [Nix](https://nixos.org/):\n\n```bash\nnix develop\nob login\n```\n\nAfter logging in, extract your token:\n\n```bash\ncat ~/.obsidian-headless/auth_token\n```\n\nSave this value — you'll set it as `OBSIDIAN_AUTH_TOKEN` on Fly.io.\n\n## Deploy to Fly.io\n\n### 1. Create the app and configure fly.toml\n\n```bash\nfly apps create\ncp fly.toml.example fly.toml\n```\n\nEdit `fly.toml` and set `app` to your app name and `primary_region` to your\nnearest [Fly.io region](https://fly.io/docs/reference/regions/).\n\n### 2. Create a volume\n\n```bash\n# single volume is fine for personal use — answer \"y\" to the HA warning\n# region MUST match primary_region in fly.toml (machines can only mount local volumes)\nfly volumes create obsidian_data --region \u003csame-as-primary_region\u003e --size 1\n```\n\n### 3. Set secrets\n\n```bash\nfly secrets set OBSIDIAN_AUTH_TOKEN=\"your-auth-token\"\nfly secrets set OBSIDIAN_VAULT_NAME=\"Your Vault Name\"\nfly secrets set MCP_SERVER_URL=\"https://\u003cyour-app-name\u003e.fly.dev\"\nfly secrets set MCP_AUTH_USERS=\"user:password\"\nfly secrets set OBSIDIAN_VAULT_PASSWORD=\"your-e2ee-password\"  # optional, only if E2E encrypted\n```\n\n### 4. Deploy\n\n```bash\nfly deploy\n```\n\n### 5. Verify\n\n```bash\ncurl \"https://\u003cyour-app-name\u003e.fly.dev/.well-known/oauth-protected-resource\"\n```\n\n## Connect Claude.ai\n\nAdd `https://\u003cyour-app\u003e.fly.dev/mcp` as a remote MCP server in\nClaude.ai settings. You'll be prompted to authenticate via OAuth\nusing the credentials set in `MCP_AUTH_USERS`.\n\n## Local Testing\n\n```bash\ncp .env.example .env\n# Edit .env with your credentials\n\ndocker build -t obsidian-mcp .\ndocker run --env-file .env -p 8090:8090 -v obsidian_data:/data obsidian-mcp\n```\n\n## Environment Variables\n\n| Variable | Required | Default | Description |\n| --- | --- | --- | --- |\n| `OBSIDIAN_AUTH_TOKEN` | Yes | — | Auth token (from `ob login`) |\n| `OBSIDIAN_VAULT_NAME` | Yes | — | Name of the vault to sync |\n| `OBSIDIAN_VAULT_PASSWORD` | If E2EE | — | E2E encryption password |\n| `ENABLE_SYNC` | No | `false` | vault-sync built-in sync |\n| `ENABLE_MCP` | No | `true` | Enable the MCP server |\n| `OBSIDIAN_SYNC_DIR` | No | `/data/vault` | Path to vault files |\n| `MCP_SERVER_URL` | Yes | — | Public base URL |\n| `MCP_AUTH_USERS` | Yes | — | `user:pass` pairs for OAuth |\n| `MCP_CLIENT_CREDENTIALS` | No | — | `id:secret` for headless OAuth |\n| `MCP_API_KEYS` | No | — | `user:key` for API key auth |\n| `MCP_LOG_LEVEL` | No | `info` | `debug`/`info`/`warn`/`error` |\n| `ENVIRONMENT` | No | `production` | `production` or `development` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklutchell%2Fobsidian-mcp-fly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklutchell%2Fobsidian-mcp-fly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklutchell%2Fobsidian-mcp-fly/lists"}