Obsidian API key, OAuth and MCP

Give an AI access to your Obsidian vault, which stays on your computer. The API key is created in 3 steps et voyage dans l'en-tête de chaque appel. OAuth is used when the access must act on behalf of other accounts. It has no official MCP server: a connector or an automation provides the link.

Notes, documents and knowledge · Knowledge base

Obsidian

Give an AI access to your Obsidian vault, which stays on your computer.

  • Local files
  • Key or personal token
  • OAuth
  • No official MCP server
  1. 1

    Obsidian n'a pas d'API en ligne : un coffre est un dossier de fichiers Markdown sur votre machine.

  2. 2

    Pour une API locale : installez le module communautaire Local REST API, qui génère une clé et écoute sur https://127.0.0.1:27124.

  3. 3

    Chaque appel porte cette clé en Bearer.

Send with every call
Authorization: Bearer <module key>
Test the key
curl -k https://127.0.0.1:27124/ \
  -H "Authorization: Bearer $OBSIDIAN_CLE"

Worth knowing. The Local REST API plugin is community-built: review its code and updates before trusting it with a sensitive vault.

Your questions about Obsidian.

Where do you create a Obsidian API key?

Obsidian n'a pas d'API en ligne : un coffre est un dossier de fichiers Markdown sur votre machine. Pour une API locale : installez le module communautaire Local REST API, qui génère une clé et écoute sur https://127.0.0.1:27124. Chaque appel porte cette clé en Bearer.

How do you check that Obsidian access works?

With a call that changes nothing, on the Local files API of Obsidian, l'en-tête Authorization: … en place. The “API key” tab gives the command to copy. A 200 response confirms the key; a 401 or 403 error means it is wrong, expired or too restricted.

Do you need OAuth with Obsidian?

Only if the access must act on behalf of accounts other than yours. Not applicable: everything stays on the machine.

Does Obsidian have an official MCP server?

No official MCP server. No official server. A file MCP server pointed at the vault folder is enough to read and write notes. The “Connect an AI” tab gives the simplest route.

What precautions should you take with Obsidian access?

The Local REST API plugin is community-built: review its code and updates before trusting it with a sensitive vault.