Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Cortex

doktordavejoosdoktordavejoos497 downloads

MCP server that lets AI coding tools (Claude Code, Codex, OpenCode) read, write, and search notes in your vault over HTTP.

  • Overview
  • Scorecard
  • Updates3

Cortex logo

Cortex

Your Obsidian vault, available to your AI coding tools — read, write, search, and organize notes from Claude Code, Codex, or OpenCode.


What it does

Cortex lets AI coding tools work directly with your Obsidian notes. It runs a local MCP server inside Obsidian that any compatible client can connect to over HTTP — no cloud services, no syncing, no config files to wrestle with.

Quick start

  1. Install from Obsidian Community Plugins (search "Cortex")
  2. Enable the plugin — the server auto-starts on port 27182
  3. Connect your client:

Claude Code

claude mcp add -s user --transport http cortex http://127.0.0.1:27182/mcp

Codex

Add to .codex/config.toml in your project (or ~/.codex/config.toml for global):

[mcp_servers.cortex]
type = "remote"
url = "http://127.0.0.1:27182/mcp"

OpenCode

Add to your opencode.json:

{
  "mcp": {
    "cortex": {
      "type": "remote",
      "url": "http://127.0.0.1:27182/mcp"
    }
  }
}
  1. Verify: ask your AI tool to run list_folders — if it returns your vault's folder structure, you're connected.

Example usage

Once connected, just ask your AI tool in natural language:

  • "Summarize my meeting notes from this week"
  • "Create a note in Projects/my-app with today's architecture decisions"
  • "Search my vault for everything about authentication"
  • "List all tags I've used and how often"

Available tools

Tool Description
read_note Read the content of a note by its vault path
write_note Create or overwrite a note at the given path
edit_note Append, prepend, or find-and-replace in a note
search_notes Full-text search across notes in the vault
list_notes List notes, optionally filtered by folder
get_note_metadata Get frontmatter, tags, links, and headings
delete_note Delete a note (moves to trash by default)
list_tags List all tags in the vault with their frequency
list_folders List folders in the vault

Connecting a project

You can tell your AI tool which Obsidian folder maps to the current project. This way, when it creates or looks for notes, it knows where to put them.

Add a snippet to your project root:

CLAUDE.md (Claude Code) or AGENTS.md (Codex, OpenCode):

## Cortex
- Cortex folder for this project: `Projects/my-app`

Replace Projects/my-app with your vault folder path. OpenCode checks AGENTS.md first, then falls back to CLAUDE.md.

Configuration

Open Settings → Cortex to configure:

  • Port — HTTP port for the MCP server (default 27182, requires restart)
  • Auto-start — Start the server when Obsidian launches (default on)

Troubleshooting

  • Server not starting — Check if port 27182 is already in use. Change the port in settings if needed.
  • Client can't connect — Make sure Obsidian is open and the server is running (check the status bar icon).
  • Changed the port — Update the URL in your client config to match the new port.

Support

If Cortex is useful to you, consider supporting its development.

Security

  • Binds to 127.0.0.1 only — no remote access by default
  • Traffic stays on your machine

Build from source

npm install
npm run build

Copy main.js and manifest.json into your vault at .obsidian/plugins/cortex/.

HealthExcellent
ReviewNot scanned
About
Expose your Obsidian vault to local AI coding tools via a built-in MCP HTTP server. Read, write, search, edit, list folders and tags, and manage notes from Claude Code, Codex, or OpenCode locally without using cloud services.
AIIntegrationsFiles
Details
Current version
v1.0.2
Last updated
9 months ago
Created
9 months ago
Updates
3 releases
Downloads
497
Compatible with
Obsidian 1.5.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
doktordavejoosdoktordavejoos
GitHubdoktordavejoos
  1. Community
  2. Plugins
  3. AI
  4. Cortex

Related plugins

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Fast Note Sync

Real-time sync of your vaults across server, mobile, and web; shareable with anyone; supports REST and MCP integrations to build your personal AI knowledge base.

Local REST API with MCP

Unlock your automation needs by interacting with your notes over a secure REST API.

ChatGPT MD

A seamless integration of ChatGPT, OpenRouter.ai and local LLMs via Ollama into your notes.

Google Drive Sync

Syncs a vault into Google Drive for cross-platform use (works for iOS).

Agent Client

Chat with Claude Code, Codex, Gemini CLI, and more via the Agent Client Protocol — right from your vault.

Gemini Scribe

Allows you to interact with Gemini and use your notes as context.

Snipd Official

Sync Snipd podcast highlights to your vault with transcript, notes, AI summaries and metadata.

Claude Sidebar

Run Claude Code in your sidebar.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.