A secure REST API and Model Context Protocol (MCP) server for your vault.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add local-rest-api-and-server-for-obsidian --env API_KEY='<API_KEY>' -- npx mcp-remote@latest https://127.0.0.1:27124/mcp/ --header 'Authorization: Bearer {{config.API_KEY}}'~/.codex/config.toml
[mcp_servers.local-rest-api-and-server-for-obsidian]
command = "npx"
args = ["mcp-remote@latest", "https://127.0.0.1:27124/mcp/", "--header", "Authorization: Bearer {{config.API_KEY}}"]
env = { API_KEY = "<API_KEY>" }
# codex mcp add local-rest-api-and-server-for-obsidian --env API_KEY='<API_KEY>' -- npx mcp-remote@latest https://127.0.0.1:27124/mcp/ --header 'Authorization: Bearer {{config.API_KEY}}'~/.cursor/mcp.json
{
"mcpServers": {
"local-rest-api-and-server-for-obsidian": {
"command": "npx",
"args": [
"mcp-remote@latest",
"https://127.0.0.1:27124/mcp/",
"--header",
"Authorization: Bearer {{config.API_KEY}}"
],
"env": {
"API_KEY": "<API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"local-rest-api-and-server-for-obsidian": {
"type": "stdio",
"command": "npx",
"args": [
"mcp-remote@latest",
"https://127.0.0.1:27124/mcp/",
"--header",
"Authorization: Bearer {{config.API_KEY}}"
],
"env": {
"API_KEY": "<API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"local-rest-api-and-server-for-obsidian": {
"command": "npx",
"args": [
"mcp-remote@latest",
"https://127.0.0.1:27124/mcp/",
"--header",
"Authorization: Bearer {{config.API_KEY}}"
],
"env": {
"API_KEY": "<API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"local-rest-api-and-server-for-obsidian": {
"command": "npx",
"args": [
"mcp-remote@latest",
"https://127.0.0.1:27124/mcp/",
"--header",
"Authorization: Bearer {{config.API_KEY}}"
],
"env": {
"API_KEY": "<API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"local-rest-api-and-server-for-obsidian": {
"command": "npx",
"args": [
"mcp-remote@latest",
"https://127.0.0.1:27124/mcp/",
"--header",
"Authorization: Bearer {{config.API_KEY}}"
],
"env": {
"API_KEY": "<API_KEY>"
}
}
}
}Environment variables
API_KEY
Replace the placeholders with your own credentials and keep them out of version control.