Expose your Obsidian vault via REST API and streamable HTTP MCP server for AI tool access
Project description
obsidian-ai-miniserver
Makes your Obsidian vault accessible via REST API (OpenAPI) and a streamable HTTP MCP server. Enables AI to find, read, and edit text notes. Supports multiple users with token-based auth and path-level access control.
Quick start
pip install obsidian-ai-miniserver
obs_ai_ms start /path/to/vault --admin-token your_token
This starts both servers on their default ports. Connect your AI to the MCP endpoint or the REST API.
Options
| Option | Default | Description |
|---|---|---|
vault_path |
(required) | Path to the Obsidian vault |
--admin-token |
(required) | Auth token for the admin user |
--openapi-port |
8747 |
Port for the REST API server (-1 to disable) |
--mcp-port |
8716 |
Port for the MCP server (-1 to disable) |
--host |
127.0.0.1 |
Host to bind to. Use 0.0.0.0 to allow remote access |
Persistence
Config is stored at .obsidian/obsidian_ai_miniserver.json inside the vault — user list with tokens and path access rules.
API reference
See openapi.json for full request/response definitions.
All requests go to POST /api/obsidian with a kind field that discriminates the request type. Available kinds:
get_vault_info— vault name, daily notes folder, your user infolist_files— list files and folders at a pathread_text— read a note's textwrite_text— overwrite a noteappend_text— append to a notereplace_text— find and replace text in a notemove_file— move, copy, or delete a filelist_users/upsert_user— admin user management
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file obsidian_ai_miniserver-0.1.1-py3-none-any.whl.
File metadata
- Download URL: obsidian_ai_miniserver-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54a3e8fb49c1d4f23ea39baee0bdaaceba77471cf5c080d60ec378519dbe3fc8
|
|
| MD5 |
05548a1d163666ece2562ce37c3f0151
|
|
| BLAKE2b-256 |
b0ae5c5321af89233bb5d69b4e678e12d117cc36aa15d585c10171ecc77fed36
|