MCP Servers
Gemini Scribe has experimental support for the Model Context Protocol (MCP) for connecting to external tool servers. This allows the AI agent to use tools provided by MCP servers alongside the built-in vault tools.
Transport Types
Gemini Scribe supports two transport types for connecting to MCP servers:
| Transport | Description | Platform |
|---|---|---|
| Stdio | Spawns a local process and communicates via stdin/stdout | Desktop only |
| HTTP | Connects to a remote server via HTTP with Server-Sent Events (SSE) | All platforms |
TIP
HTTP transport works on mobile devices (iOS and Android), making it possible to use MCP servers from anywhere. Stdio transport requires the ability to spawn processes and is limited to desktop (Windows, macOS, Linux).
What is MCP?
MCP (Model Context Protocol) is an open standard that lets AI applications connect to external tool providers. An MCP server provides tools the AI can call — for example, a filesystem server that provides file operations, a database server that provides query tools, or a custom server you build yourself.
When you connect an MCP server to Gemini Scribe, its tools appear alongside the built-in vault tools. The agent can discover and call them during conversations, with the same confirmation flow and safety features as built-in tools.
Setup
Prerequisites
- A Google AI API key configured in the plugin
- An MCP server to connect to (see Finding Servers below)
- For stdio servers: Desktop platform (Windows, macOS, Linux) with the server installed locally
- For HTTP servers: A running MCP server accessible via URL
Adding a Server
- Open Obsidian Settings
- Navigate to Gemini Scribe settings
- Scroll to the MCP Servers section
- Toggle Enable MCP servers on
- Click Add Server
- Select the Transport type:
- Stdio (local process): Enter the command, arguments, and optional environment variables
- HTTP (remote server): Enter the server URL
- Click Test Connection to verify and discover available tools
- Configure tool trust settings (see below)
- Click Save
Tool Trust
Each tool from an MCP server can be marked as trusted or untrusted:
- Trusted tools execute without confirmation — useful for read-only operations you use frequently
- Untrusted tools require approval before each execution — recommended for tools that modify data
You can configure trust per tool when adding/editing a server, after clicking Test Connection to discover available tools.
Examples
Stdio: Filesystem Server
The MCP project provides a reference filesystem server. To set it up:
- Install Node.js
- Add a new MCP server with:
- Transport: Stdio (local process)
- Name:
filesystem - Command:
npx - Arguments:text
-y @modelcontextprotocol/server-filesystem /path/to/your/folder
- Test the connection and save
HTTP: Remote MCP Server
To connect to an MCP server running on your network or the cloud:
- Ensure the server is running and accessible
- Add a new MCP server with:
- Transport: HTTP (remote server)
- Name:
my-remote-server - URL:
http://localhost:3000/mcp(or your server's URL)
- Test the connection and save
TIP
HTTP servers can run anywhere — on your local machine, on another computer on your network, or in the cloud. This is especially useful for mobile access.
HTTP: Server with OAuth
Some MCP servers require OAuth authentication. Gemini Scribe handles the full OAuth flow automatically:
- Add a new MCP server with:
- Transport: HTTP (remote server)
- Name:
my-oauth-server - URL:
https://example.com/mcp
- Click Test Connection
- If the server requires OAuth, your browser will open to the authorization page
- Sign in and authorize the application
- You'll be redirected back to Obsidian automatically
- Tokens are stored securely in Obsidian's SecretStorage (OS keychain)
TIP
OAuth tokens persist across Obsidian restarts. To clear stored credentials, click Clear OAuth Credentials in the server's edit dialog.
WARNING
The OAuth callback runs a temporary local server on port 8095. Ensure this port is available. The authorization flow times out after 2 minutes.
Environment Variables
Stdio servers can be configured with environment variables. These are useful for passing API keys, paths, or other configuration to the server process.
When adding or editing a stdio server, click Add Environment Variable to define key-value pairs:
| Variable | Example Use Case |
|---|---|
BRAVE_API_KEY | API key for Brave Search MCP server |
GITHUB_TOKEN | Personal access token for GitHub MCP server |
HOME | Override home directory for the server process |
WARNING
Environment variables may contain sensitive values like API keys. These are stored in your Obsidian plugin settings (data.json), not in SecretStorage. Avoid committing your vault's .obsidian folder to public repositories.
Finding Servers
Popular MCP servers include:
- @modelcontextprotocol/server-filesystem — File operations
- @modelcontextprotocol/server-brave-search — Web search via Brave
- @modelcontextprotocol/server-github — GitHub repository operations
Browse the MCP Server Registry for a full list of community servers.
How It Works
When an MCP server is connected:
- Stdio: The plugin spawns the server process with the configured command and arguments. HTTP: The plugin connects to the server URL via HTTP.
- It queries the server for its list of tools via the MCP protocol
- Each tool is registered in the plugin's tool system with a namespaced name (
mcp__<server>__<tool>) - When the agent calls a tool, the plugin forwards the request to the MCP server and returns the result
- The confirmation flow works the same as built-in tools — untrusted tools require approval
Troubleshooting
Server won't connect (stdio)
- Verify the command is installed and accessible from Obsidian's environment
- Check that the arguments are correct
- Ensure you're on a desktop platform (stdio requires process spawning)
- Try running the command manually in a terminal to verify it works
- Enable Debug Mode in settings for detailed MCP logs
Server won't connect (HTTP)
- Verify the server is running and the URL is correct
- Check that there are no firewall or network issues blocking the connection
- Ensure the URL includes the correct path (e.g.,
/mcp) - Enable Debug Mode in settings for detailed error messages
No tools show up
- Click Test Connection in the server settings to re-discover tools
- Verify Enable MCP servers is toggled on
- Check that the server's tools are compatible (MCP v1 tools)
Tools fail to execute
- Check that the tool hasn't been removed from the server
- Try disconnecting and reconnecting the server
- Enable Debug Mode for detailed error logs
Limitations
- Stdio transport: Desktop only (Windows, macOS, Linux)
- Tools only: MCP resources and prompts are not yet supported
- Restart required: Changes to server configurations require toggling the server off and on, or restarting the plugin
- OAuth: Requires a browser for the authorization flow; not available on mobile for OAuth-protected servers