- Install and Enable the Obsidian REST API Plugin
- Open your Obsidian app.
- Go to "Settings" → "Community Plugins."
- Search for "Obsidian REST API" or "obsidian-local-rest-api" and install it.
- Enable the plugin.
- Obtain the API Key
- After enabling, open the settings for the Obsidian REST API plugin.
- Locate your API key inside the plugin config.
- Copy the API key—this is required for the FastMCP connection.
- Find Host and Port Values (if needed)
- By default, the host should be
127.0.0.1
(localhost), and the port should be 27124
.
- If you have changed these in the REST API plugin settings, note your custom values instead.
- Add Values via the FastMCP Connection Interface
- Go to the FastMCP setup interface and locate your Obsidian server connection.
- Click the "Install Now" button.
- When prompted, fill in the following fields:
OBSIDIAN_API_KEY
: Paste the API key you copied from the plugin.
OBSIDIAN_HOST
: Use 127.0.0.1
(default) or your custom host.
OBSIDIAN_PORT
: Use 27124
(default) or your custom port.
Your FastMCP integration will now be able to connect to your Obsidian vault using the Local REST API plugin.