# obsidian-wiki

obsidian-wiki is a Claude Code MCP server that connects your agent to a local markdown vault. It indexes previous discussions and retrieves context using linked notes.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 3811 repo stars
- Author: Ar9av
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Ar9av/obsidian-wiki
- Updated: 2026-10-21
- Security check: automated, 2026-11-24 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/obsidian-wiki

## What it does

The server connects an assistant to a local folder of markdown documents. Rather than repeating identical inquiries or reindexing conversation histories, the agent extracts findings into interconnected wiki pages. It catalogs workflow solutions, merges duplicate topics, identifies missing links, and traces cross-references across the collection.

An optional local web interface runs on port `3114` to inspect the graph, review citations, and drop incoming files. Notes remain on the local disk, and the full graph exports to JSON, GraphML, Neo4j Cypher, or Postgres SQL. Running over stdio requires the `OBSIDIAN_VAULT_PATH` environment variable set to your vault directory.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Remote server: `https://{host}/mcp/`
- Environment variables: `OBSIDIAN_VAULT_PATH` — keys and tokens: ask the human for the values, never commit them or put them in shared files.
- Works with: Obsidian

## Install

### Claude Code (native platform)

1. **Platform CLI**
```bash
claude mcp add --env OBSIDIAN_VAULT_PATH=<OBSIDIAN_VAULT_PATH> --transport stdio obsidian-wiki -- uvx obsidian-wiki
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from obsidian-wiki <command>

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http obsidian-wiki https://{host}/mcp/
```

### Codex

1. **Platform CLI**
```bash
codex mcp add obsidian-wiki --env OBSIDIAN_VAULT_PATH=<OBSIDIAN_VAULT_PATH> -- uvx obsidian-wiki
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from obsidian-wiki <command>

2. **Platform CLI: remote server**
```bash
codex mcp add obsidian-wiki --url https://{host}/mcp/
```

### Cursor

1. **Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "obsidian-wiki": {
            "command": "uvx",
            "args": [
                "obsidian-wiki"
            ],
            "env": {
                "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from obsidian-wiki <command>

2. **Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "obsidian-wiki": {
            "url": "https://{host}/mcp/"
        }
    }
}
```

### GitHub Copilot

1. **Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "obsidian-wiki": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "obsidian-wiki"
            ],
            "env": {
                "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from obsidian-wiki <command>

2. **Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "obsidian-wiki": {
            "type": "http",
            "url": "https://{host}/mcp/"
        }
    }
}
```

### Gemini CLI

1. **Platform CLI**
```bash
gemini mcp add -e OBSIDIAN_VAULT_PATH=<OBSIDIAN_VAULT_PATH> obsidian-wiki uvx obsidian-wiki
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from obsidian-wiki <command>

2. **Platform CLI: remote server**
```bash
gemini mcp add -t http obsidian-wiki https://{host}/mcp/
```

## When to use it
- managing agent memory
- compile session context into local markdown notes
- query knowledge with linked wikilink citations
- clean orphan notes and merge duplicate pages

## Example prompts
- Save the findings from this conversation to my wiki
- /wiki-query what did we decide about rate limiting?
- /wiki-dedup merge duplicate topics in the vault

## Similar
- [obsidian-log](https://affpapa.org/en/nevibecode/commands/obsidian-log.md) — command · ★ 5454 repo stars
- [obsidian-merge](https://affpapa.org/en/nevibecode/commands/obsidian-merge.md) — command · ★ 5454 repo stars
- [llm-wiki](https://affpapa.org/en/nevibecode/skills/llm-wiki.md) — skill · 699 installs
- [obsidian-kb-artifacts](https://affpapa.org/en/nevibecode/skills/obsidian-kb-artifacts.md) — skill · 332 installs
- [wiki-knowledge-complier](https://affpapa.org/en/nevibecode/plugins/wiki-knowledge-complier.md) — plugin · ★ 12 repo stars
- [wiki-ingest](https://affpapa.org/en/nevibecode/skills/sanyuan0704-wiki-ingest.md) — skill · 2900 installs

From the same set: [ar9av/obsidian-wiki](https://affpapa.org/en/nevibecode/by/ar9av/obsidian-wiki.md) — 41 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
