Skip to main content
Glama
Heracraft

Obsidian Remote REST API MCP Server

by Heracraft

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTPS port.27124
TRASHNoWhere DELETE puts files: local (the folder's .trash), or none (delete outright). system means local, since a container has no system trash. Default comes from app.json, else local.local
WATCHNoFollow changes made to the folder by anything else.true
API_KEYYesThe bearer token. Without it the server generates one on first start, logs it once, keeps it in the data directory, and warns at every start.
DATA_DIRNoWhere the generated API key and TLS material are kept. The default sits in the configuration directory, which the API refuses to serve.<vault>/.obsidian/plugins/obsidian-remote-rest-api
CONFIG_DIRNoThe Obsidian configuration directory's name, which the API refuses to read or write..obsidian
VAULT_PATHNoThe folder to serve./vault
BINDING_HOSTNoThe address to listen on. Must be private; see Exposure.0.0.0.0
TLS_KEY_FILENoUse your own key instead of the generated one.
INSECURE_PORTNoHTTP port.27123
TLS_CERT_FILENoUse your own certificate (PEM, chain included) instead of the generated one.
NEW_LINK_FORMATNoHow rewritten links name their target: shortest, relative or absolute. Default comes from app.json, else shortest.shortest
VERBOSE_LOGGINGNoLog each change seen on disk and each refused request.false
SUBJECT_ALT_NAMESNoComma-separated host names and addresses for the HTTPS certificate. compose.yaml adds BIND_IP. Changing it generates a new certificate authority.
ENABLE_SIGNED_URLSNoAllow signed URLs.true
ENABLE_SECURE_SERVERNoServe HTTPS.true
UPDATE_LINKS_ON_MOVENoRewrite links to a note when MOVE moves it. Default comes from app.json, else true.true
ENABLE_INSECURE_SERVERNoServe plain HTTP. Only inside a Tailscale or WireGuard tunnel.false
SIGNED_URL_TTL_SECONDSNoHow long a signed URL stays valid.300
ALLOWED_CLIENT_NETWORKSNoComma-separated CIDRs clients may connect from. Can only narrow the private ranges.the private ranges
RESCAN_INTERVAL_SECONDSNoHow often to compare the whole folder with the index, for changes the watcher missed. 0 turns it off.60
ENABLE_CONFIG_DIR_ACCESSNoLet the API read and write the configuration directory. Exposes the stored API key.false
AUTHORIZATION_HEADER_NAMENoThe header that carries the bearer token.Authorization

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources