doktordavejoos497 downloadsMCP server that lets AI coding tools (Claude Code, Codex, OpenCode) read, write, and search notes in your vault over HTTP.
Your Obsidian vault, available to your AI coding tools — read, write, search, and organize notes from Claude Code, Codex, or OpenCode.
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.
27182claude mcp add -s user --transport http cortex http://127.0.0.1:27182/mcp
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"
Add to your opencode.json:
{
"mcp": {
"cortex": {
"type": "remote",
"url": "http://127.0.0.1:27182/mcp"
}
}
}
list_folders — if it returns your vault's folder structure, you're connected.Once connected, just ask your AI tool in natural language:
| 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 |
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.
Open Settings → Cortex to configure:
27182, requires restart)27182 is already in use. Change the port in settings if needed.If Cortex is useful to you, consider supporting its development.
127.0.0.1 only — no remote access by defaultnpm install
npm run build
Copy main.js and manifest.json into your vault at .obsidian/plugins/cortex/.