pebble-index-mcp
pebble-index-mcp
ローカルの Obsidian Vault と Hermes Agent インスタンスを、Pebble Index 01 スマートリングのダブルクリック MCP サンドボックスに公開する MCP ブリッジです。リングからの音声キャプチャは Pebble アプリのクラウドエージェントによってこのサーバーのツールにルーティングされ、回答はスマートフォンへの通知として返ってきます。
Architecture
[Index ring] → [Pebble app] → [Pebble cloud agent] → [this MCP server]
├─ vault tools (local files)
└─ ask_hermes → Hermes API serverサーバーは Streamable HTTP 上で MCP を話します (公式
mcpSDK、FastMCP)。すべてのリクエストはベアラートークンを必須とし、トークンがないものは 401 になります。
FastMCP の DNS リバインディング保護は有効です。許可されるホストはループバックと、
MCP_ALLOWED_HOSTSに列挙されたものです。外部公開はループバックポートへの cloudflared トンネルで行い、それ以上のクラウドインフラストラクチャは必要ありません。
Related MCP server: mcp-obsidian
Components
パス | 役割 |
|
|
|
|
| FastMCP アプリ: 4 つのツールと |
Tools
vault_search(query, max_results=5)— 大文字と小文字を区別しないテキスト検索。path: 抜粋の行を返します。vault_read(note_path, max_chars=1500)— ノートの先頭を読み取ります。vault_append(note_path, text)— タイムスタンプ付きの- HH:MM text行を追記します。必要に応じてノートを作成します。ask_hermes(question)— Hermes API サーバーに転送します。60 秒のタイムアウト時は、応答が得られなかったことを誠実に伝えます。
Security
認証: 静的なベアラートークン (
MCP_BEARER_TOKEN) を定数時間比較で必須確認します。空のトークンはフェイルクローズ (全リクエスト 401) となり、起動時に警告がログされます。Transport: TLS はトンネルのエッジで終端され、オリジンはループバックのみで待ち受るします。
ホスト検証: Host ヘッダーがループバックでも
MCP_ALLOWED_HOSTSにも該当しないリクエストは、DNS リバインディング保護が拒否します。パスサンドボックス: Vault ツールはすべてのパスを解決し、Vault のルート内に収まることを要求します。シンボリックリンクのエスケープは拒否され、ファイルオープンでは最終コンポーネントに
O_NOFOLLOWが使用されます。サンドボックスは偶発的・遠隔からの誤用を防ぎますが、親ディレクトリの差し替えを競合させる悪意のあるローカルプロセスには依然として制まずがあります (文書化された TOCTOU 境界 — Vault は信頼された単一ユーザーディレクトリとみなされます)。設定は import 時に一度だけ読み込みます。ベアラートークンのローテーションや許可ホストの変更はサービス再起動が必要です。
シークレット: Hermes API キーと MCP トークンは、このリポジトリ外の権限 0600 の
envファイルに置かれます。コード・ログ・コミットに含めることは絶対にありません。プライバシー: ダブルクリックサンドボックス経由の録音は、Pebble アプリのクラウドエージェントを通過します。シングルクリックのキャプチャは端末上に留まります。機密に近い思考を扱う操作はシングルクリックで行ってください。
Configuration (env)
変数 | デフォルト | 説明 |
| — | 必須。 ファイルツールのための Vault ルート。 |
|
| 待ち受けアドレス。 |
| — | 必須。リクエスト認証トークン。 |
| — | 追加で許可する Host 値のカンマ区切りリスト (公開トンネルのホスト名をここに指定)。 |
|
|
|
| — | API サーバーのベアラートークン。 |
|
| 送信先に渡すモデルエイリアス (API サーバーの |
| — | 既定のクラウドエージェントペルソナを置き換えるテキストファイルへの任意パス。 |
HERMES_API_URL は OpenAI 互換の chat completions エンドポイントを任意で受け付けられるため、ask_hermes は OpenRouter 直接、Ollama、その他の互換 API に対しても動作します。Hermes は単なるデフォルトです。
Development
python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/pytest -vローカルで実行するには、上記の環境変数を設定し、python -m pebble_index_mcp.server を使用します。
Deployment
deploy/ には systemd ユーザーユニットのテンプレートと cloudflared トンネルのテンプレートが含まれています (ホスト名と資格情報はこのリポジトリではなくホスト側で記入します)。docs/ring-checklist.md でスマートフォン側のセットアップとテストマトリックスを確認してください。
License
MIT — LICENSE を参照してください。
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
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Obsidian vaults for creating, reading, searching, and managing notes, daily notes, TODOs, session reports, and backlinks through both stdio and HTTP/SSE transports.103,8604MIT
- AlicenseNot gradedqualityBmaintenanceConnects AI assistants to Obsidian vaults via the Local REST API to search notes, retrieve content, and perform semantic searches. It features self-healing multi-URL connectivity and supports both stdio and HTTP transports for flexible deployment.23213MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Obsidian notes via local REST API, supporting file CRUD, search, commands, and periodic notes.2,4727Apache 2.0
- AlicenseBqualityDmaintenanceEnables AI assistants to search, create, and manage notes in an Obsidian vault via 40+ local tools.5222MIT
Related MCP Connectors
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
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/jcrabapple/pebble-index-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server