Sponsored by Deepsite.site

MCP Obsidian Docker

Created By
kmackett8 months ago
Dockerized version of MCP Obsidian server for Obsidian Local REST API integration
Content

MCP Obsidian Docker

This is a containerized version of MCP Obsidian, a server that interacts with Obsidian via the Local REST API community plugin.

Prerequisites

  1. Docker and Docker Compose installed
  2. Obsidian with the Local REST API plugin installed and configured
  3. API key from the Local REST API plugin

API Key Configuration

Getting Your API Key

  1. Open Obsidian
  2. Go to Settings (gear icon in the bottom left)
  3. Select "Community Plugins" in the left sidebar
  4. Find "Local REST API" in your list of installed plugins
  5. Click the settings gear icon (⚙️) next to the plugin
  6. Look for the "API Key" field - this is your authentication key

Setting Up the API Key

  1. Create your environment file by copying the example:

    cp .env.example .env
    
  2. Edit the .env file:

    # Open with your preferred editor
    nano .env
    # or
    vim .env
    # or any text editor
    
  3. Replace the placeholder with your actual API key:

    # Before:
    OBSIDIAN_API_KEY=your_api_key_here
    
    # After (example - use your actual key):
    OBSIDIAN_API_KEY=1234abcd5678efgh
    

Security Notes

  • The .env file is listed in .gitignore to prevent accidental commits
  • Never share your API key or commit it to version control
  • If you need to change your API key:
    1. Generate a new key in Obsidian
    2. Update your .env file
    3. Restart the container: docker-compose restart

Setup

  1. Clone this repository
  2. Configure API key as described above
  3. Build and start the container:
    docker-compose up -d
    

Usage

The MCP Obsidian server will be available at port 27124. Make sure this port matches the one configured in your Obsidian Local REST API plugin.

Verifying the Setup

  1. Check if the container is running:

    docker-compose ps
    
  2. Check the logs for any issues:

    docker-compose logs -f
    
  3. If you see authentication errors, verify your API key is correctly set in the .env file

Common Issues

  1. Authentication Failed: Double-check your API key in both Obsidian plugin settings and .env file
  2. Connection Refused: Ensure Obsidian is running and the Local REST API plugin is enabled
  3. Port Conflict: If port 27124 is already in use, you can modify the port mapping in docker-compose.yml

Logs

Logs are stored in the ./logs directory, which is mounted as a volume in the container.

Environment Variables

  • OBSIDIAN_API_KEY: Your Obsidian Local REST API plugin API key (required)

License

This project is licensed under the MIT License - see the original MCP Obsidian repository for details.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
CursorThe AI Code Editor
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Tavily Mcp
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
DeepChatYour AI Partner on Desktop
Serper MCP ServerA Serper MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
ChatWiseThe second fastest AI chatbot™
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.