Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-bezata-kobsidian-mcp": {
"command": "npx",
"args": [
"-y",
"kobsidian-mcp"
],
"env": {
"OBSIDIAN_VAULT_PATH": "<VALUE>",
"OBSIDIAN_API_URL": "https://127.0.0.1:27124",
"OBSIDIAN_API_VERIFY_TLS": "false",
"OBSIDIAN_REST_API_KEY": "<YOUR_VALUE>",
"KOBSIDIAN_HTTP_HOST": "127.0.0.1",
"KOBSIDIAN_HTTP_PORT": "3000",
"KOBSIDIAN_WIKI_ROOT": "wiki",
"KOBSIDIAN_WIKI_LOG_FILE": "log.md",
"KOBSIDIAN_ALLOWED_ORIGINS": "http://localhost,http://127.0.0.1",
"KOBSIDIAN_WIKI_INDEX_FILE": "index.md",
"KOBSIDIAN_WIKI_STALE_DAYS": "180",
"KOBSIDIAN_WIKI_SCHEMA_FILE": "wiki-schema.md",
"KOBSIDIAN_WIKI_SOURCES_DIR": "Sources",
"KOBSIDIAN_HTTP_BEARER_TOKEN": "<VALUE>",
"KOBSIDIAN_WIKI_CONCEPTS_DIR": "Concepts",
"KOBSIDIAN_WIKI_ENTITIES_DIR": "Entities"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-bezata-kobsidian-mcp": {
"command": "npx",
"args": [
"-y",
"kobsidian-mcp"
],
"env": {
"OBSIDIAN_VAULT_PATH": "<VALUE>",
"OBSIDIAN_API_URL": "https://127.0.0.1:27124",
"OBSIDIAN_API_VERIFY_TLS": "false",
"OBSIDIAN_REST_API_KEY": "<YOUR_VALUE>",
"KOBSIDIAN_HTTP_HOST": "127.0.0.1",
"KOBSIDIAN_HTTP_PORT": "3000",
"KOBSIDIAN_WIKI_ROOT": "wiki",
"KOBSIDIAN_WIKI_LOG_FILE": "log.md",
"KOBSIDIAN_ALLOWED_ORIGINS": "http://localhost,http://127.0.0.1",
"KOBSIDIAN_WIKI_INDEX_FILE": "index.md",
"KOBSIDIAN_WIKI_STALE_DAYS": "180",
"KOBSIDIAN_WIKI_SCHEMA_FILE": "wiki-schema.md",
"KOBSIDIAN_WIKI_SOURCES_DIR": "Sources",
"KOBSIDIAN_HTTP_BEARER_TOKEN": "<VALUE>",
"KOBSIDIAN_WIKI_CONCEPTS_DIR": "Concepts",
"KOBSIDIAN_WIKI_ENTITIES_DIR": "Entities"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-bezata-kobsidian-mcp": {
"command": "npx",
"args": [
"-y",
"kobsidian-mcp"
],
"env": {
"OBSIDIAN_VAULT_PATH": "<VALUE>",
"OBSIDIAN_API_URL": "https://127.0.0.1:27124",
"OBSIDIAN_API_VERIFY_TLS": "false",
"OBSIDIAN_REST_API_KEY": "<YOUR_VALUE>",
"KOBSIDIAN_HTTP_HOST": "127.0.0.1",
"KOBSIDIAN_HTTP_PORT": "3000",
"KOBSIDIAN_WIKI_ROOT": "wiki",
"KOBSIDIAN_WIKI_LOG_FILE": "log.md",
"KOBSIDIAN_ALLOWED_ORIGINS": "http://localhost,http://127.0.0.1",
"KOBSIDIAN_WIKI_INDEX_FILE": "index.md",
"KOBSIDIAN_WIKI_STALE_DAYS": "180",
"KOBSIDIAN_WIKI_SCHEMA_FILE": "wiki-schema.md",
"KOBSIDIAN_WIKI_SOURCES_DIR": "Sources",
"KOBSIDIAN_HTTP_BEARER_TOKEN": "<VALUE>",
"KOBSIDIAN_WIKI_CONCEPTS_DIR": "Concepts",
"KOBSIDIAN_WIKI_ENTITIES_DIR": "Entities"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-bezata-kobsidian-mcp": {
"command": "npx",
"args": [
"-y",
"kobsidian-mcp"
],
"env": {
"OBSIDIAN_VAULT_PATH": "<VALUE>",
"OBSIDIAN_API_URL": "https://127.0.0.1:27124",
"OBSIDIAN_API_VERIFY_TLS": "false",
"OBSIDIAN_REST_API_KEY": "<YOUR_VALUE>",
"KOBSIDIAN_HTTP_HOST": "127.0.0.1",
"KOBSIDIAN_HTTP_PORT": "3000",
"KOBSIDIAN_WIKI_ROOT": "wiki",
"KOBSIDIAN_WIKI_LOG_FILE": "log.md",
"KOBSIDIAN_ALLOWED_ORIGINS": "http://localhost,http://127.0.0.1",
"KOBSIDIAN_WIKI_INDEX_FILE": "index.md",
"KOBSIDIAN_WIKI_STALE_DAYS": "180",
"KOBSIDIAN_WIKI_SCHEMA_FILE": "wiki-schema.md",
"KOBSIDIAN_WIKI_SOURCES_DIR": "Sources",
"KOBSIDIAN_HTTP_BEARER_TOKEN": "<VALUE>",
"KOBSIDIAN_WIKI_CONCEPTS_DIR": "Concepts",
"KOBSIDIAN_WIKI_ENTITIES_DIR": "Entities"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-bezata-kobsidian-mcp": {
"command": "npx",
"args": [
"-y",
"kobsidian-mcp"
],
"env": {
"OBSIDIAN_VAULT_PATH": "<VALUE>",
"OBSIDIAN_API_URL": "https://127.0.0.1:27124",
"OBSIDIAN_API_VERIFY_TLS": "false",
"OBSIDIAN_REST_API_KEY": "<YOUR_VALUE>",
"KOBSIDIAN_HTTP_HOST": "127.0.0.1",
"KOBSIDIAN_HTTP_PORT": "3000",
"KOBSIDIAN_WIKI_ROOT": "wiki",
"KOBSIDIAN_WIKI_LOG_FILE": "log.md",
"KOBSIDIAN_ALLOWED_ORIGINS": "http://localhost,http://127.0.0.1",
"KOBSIDIAN_WIKI_INDEX_FILE": "index.md",
"KOBSIDIAN_WIKI_STALE_DAYS": "180",
"KOBSIDIAN_WIKI_SCHEMA_FILE": "wiki-schema.md",
"KOBSIDIAN_WIKI_SOURCES_DIR": "Sources",
"KOBSIDIAN_HTTP_BEARER_TOKEN": "<VALUE>",
"KOBSIDIAN_WIKI_CONCEPTS_DIR": "Concepts",
"KOBSIDIAN_WIKI_ENTITIES_DIR": "Entities"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-bezata-kobsidian-mcp": {
"command": "npx",
"args": [
"-y",
"kobsidian-mcp"
],
"env": {
"OBSIDIAN_VAULT_PATH": "<VALUE>",
"OBSIDIAN_API_URL": "https://127.0.0.1:27124",
"OBSIDIAN_API_VERIFY_TLS": "false",
"OBSIDIAN_REST_API_KEY": "<YOUR_VALUE>",
"KOBSIDIAN_HTTP_HOST": "127.0.0.1",
"KOBSIDIAN_HTTP_PORT": "3000",
"KOBSIDIAN_WIKI_ROOT": "wiki",
"KOBSIDIAN_WIKI_LOG_FILE": "log.md",
"KOBSIDIAN_ALLOWED_ORIGINS": "http://localhost,http://127.0.0.1",
"KOBSIDIAN_WIKI_INDEX_FILE": "index.md",
"KOBSIDIAN_WIKI_STALE_DAYS": "180",
"KOBSIDIAN_WIKI_SCHEMA_FILE": "wiki-schema.md",
"KOBSIDIAN_WIKI_SOURCES_DIR": "Sources",
"KOBSIDIAN_HTTP_BEARER_TOKEN": "<VALUE>",
"KOBSIDIAN_WIKI_CONCEPTS_DIR": "Concepts",
"KOBSIDIAN_WIKI_ENTITIES_DIR": "Entities"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| OBSIDIAN_VAULT_PATH | Yes | Absolute path to the vault. |
| OBSIDIAN_API_URL | No | Obsidian Local REST API base; only for workspace.* / commands.* / dataview.query*. Default: https://127.0.0.1:27124 |
| OBSIDIAN_API_VERIFY_TLS | No | Set true if you've trusted the REST API's self-signed cert. Default: false |
| OBSIDIAN_REST_API_KEY secret | No | Bearer key for the REST API plugin (if used). |
| KOBSIDIAN_HTTP_HOST | No | Bind host for dev:http. Default: 127.0.0.1 |
| KOBSIDIAN_HTTP_PORT | No | Bind port for dev:http. Default: 3000 |
| KOBSIDIAN_WIKI_ROOT | No | Wiki directory under the vault. Default: wiki |
| KOBSIDIAN_WIKI_LOG_FILE | No | Wiki log filename. Default: log.md |
| KOBSIDIAN_ALLOWED_ORIGINS | No | Comma-separated CORS allowlist. Default: http://localhost,http://127.0.0.1 |
| KOBSIDIAN_WIKI_INDEX_FILE | No | Wiki catalog filename. Default: index.md |
| KOBSIDIAN_WIKI_STALE_DAYS | No | wiki.lint stale-page threshold. Default: 180 |
| KOBSIDIAN_WIKI_SCHEMA_FILE | No | Seed schema filename. Default: wiki-schema.md |
| KOBSIDIAN_WIKI_SOURCES_DIR | No | Per-source summary pages. Default: Sources |
| KOBSIDIAN_HTTP_BEARER_TOKEN | No | Optional bearer for the Streamable HTTP transport. |
| KOBSIDIAN_WIKI_CONCEPTS_DIR | No | Topic / idea pages. Default: Concepts |
| KOBSIDIAN_WIKI_ENTITIES_DIR | No | People / places / orgs / works. Default: Entities |