Skip to main content
Glama

palace-mcp

MCP-Server, der einen Obsidian-Vault über das Local REST API-Plugin für KI-Assistenten bereitstellt.

Erstellt mit FastMCP. Agenten können Notizen auflisten, lesen, schreiben, durchsuchen und löschen — und die Notiz lesen, die gerade in Obsidian geöffnet ist.

Voraussetzungen

  • Obsidian mit installiertem und ausgeführtem Local REST API-Plugin

  • Python 3.12+

  • uv (empfohlen) oder pip

Kopieren Sie vor dem Fortfahren Ihren API-Schlüssel aus den Plugin-Einstellungen in Obsidian.

Related MCP server: obsidian-local-mcp

Installation

git clone <repo-url> palace-mcp
cd palace-mcp
uv sync

Konfiguration

Variable

Erforderlich

Standard

Beschreibung

OBSIDIAN_API_KEY

ja

Bearer-Token vom Local REST API Plugin

OBSIDIAN_HOST

nein

127.0.0.1

Host, auf dem die REST-API von Obsidian lauscht

OBSIDIAN_PORT

nein

27123

Port für die REST-API

OBSIDIAN_PROTOCOL

nein

http

http oder https

PALACE_APPEND_DENY

nein

/Context/,/System/,Index.md

Kommagetrennte Pfade, in denen append_note blockiert ist

Bei Verwendung von HTTPS mit dem selbstsignierten Zertifikat des Plugins wird die Zertifikatsprüfung automatisch übersprungen.

Ausführen

Starten Sie den Server über stdio (der Standardtransport für MCP-Clients):

export OBSIDIAN_API_KEY="your-api-key"
uv run python server.py

Oder über FastMCP:

uv run fastmcp run server.py

Cursor-Einrichtung

Fügen Sie Ihrer MCP-Konfiguration (z. B. ~/.cursor/mcp.json) Folgendes hinzu:

{
  "mcpServers": {
    "obsidian-palace": {
      "command": "uv",
      "args": ["run", "python", "server.py"],
      "cwd": "/path/to/palace-mcp",
      "env": {
        "OBSIDIAN_API_KEY": "your-api-key-here"
      }
    }
  }
}

Starten Sie Cursor neu oder laden Sie die MCP-Server nach dem Speichern neu.

Werkzeuge

Werkzeug

Beschreibung

list_notes

Listet Dateien und Ordner auf. Geben Sie einen Unterverzeichnispfad an oder lassen Sie das Feld für das Vault-Wurzelverzeichnis leer.

read_note

Liest den vollständigen Inhalt einer Notiz über einen vault-relativen Pfad (z. B. People/Alice.md).

write_note

Erstellt eine neue Notiz oder überschreibt eine vorhandene.

append_note

Fügt Text am Ende einer Notiz hinzu. Erstellt die Notiz, falls sie nicht existiert.

search_notes

Volltextsuche; gibt passende Dateinamen nach Relevanz sortiert zurück.

active_note

Gibt den Inhalt der aktuell in Obsidian geöffneten Notiz zurück.

delete_note

Löscht eine Notiz dauerhaft. Unumkehrbar — mit Vorsicht verwenden.

Schutz beim Anhängen

Einige Vault-Pfade werden als nur überschreibbar behandelt. Das Anhängen an diese Pfade kann stillschweigend doppelte Inhalte in einer einzelnen Notiz ansammeln, was später schwer zu erkennen ist.

Standardmäßig wird append_note für Pfade verweigert, die Folgendem entsprechen:

  • /Context/ (jede Notiz unter einem Context-Ordner)

  • /System/ (jede Notiz unter einem System-Ordner)

  • Index.md (jede Datei namens Index.md)

Verwenden Sie stattdessen write_note, um diese Notizen zu ersetzen. Sie können die Verweigerungsliste mit der Umgebungsvariablen PALACE_APPEND_DENY überschreiben.

Lizenz

MIT

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Provides an MCP server that allows AI assistants to interact with Obsidian vaults, enabling reading/writing notes, managing metadata, searching content, and working with daily notes.
    36
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    A local MCP server that wraps the Obsidian CLI to give AI assistants direct access to read, edit, and manage notes within an Obsidian vault. It enables advanced operations such as frontmatter property management, context-aware searching, and the execution of internal Obsidian commands.
    2
  • A
    license
    -
    quality
    D
    maintenance
    A lightweight MCP server that enables AI assistants to securely read, create, and modify notes in an Obsidian vault, with support for semantic search and web scraping.
    2,472
    MIT

View all related MCP servers

Related MCP Connectors

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

  • Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only

  • An MCP server that gives your AI access to the source code and docs of all public github repos

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anis-meliti/palace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server