Skip to content

Conversation

@dominikblei
Copy link

Adds support for configuring the REST API port via the OBSIDIAN_REST_API_PORT environment variable.

This enables running multiple Obsidian vaults simultaneously, each with their own MCP server instance on different ports.

Usage:

{
  "mcpServers": {
    "vault-a": {
      "command": ".../mcp-server",
      "env": {
        "OBSIDIAN_API_KEY": "...",
        "OBSIDIAN_REST_API_PORT": "27124"
      }
    },
    "vault-b": {
      "command": ".../mcp-server",
      "env": {
        "OBSIDIAN_API_KEY": "...",
        "OBSIDIAN_REST_API_PORT": "27125"
      }
    }
  }
}

Closes #40

@netlify
Copy link

netlify bot commented Jan 15, 2026

Deploy Preview for superb-starlight-b5acb5 canceled.

Name Link
🔨 Latest commit 049f5dc
🔍 Latest deploy log https://app.netlify.com/projects/superb-starlight-b5acb5/deploys/69694dcc5b79f400083b9c0d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add support for custom HTTP and HTTPS ports via environment variables

1 participant