Obsidian Todos MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add obsidian-todos -- npx -y obsidian-todos-mcp-server
README.md

Manage Obsidian tasks via AI assistants using the Local REST API

Obsidian Todos MCP Server

Model Context Protocol (MCP) server that provides AI assistants with direct access to Obsidian todos through the Local REST API.

Features

  • 🔍 List todos - Get all incomplete todos from your vault
  • Add todos - Create new todos in today's daily note
  • ✏️ Update todos - Modify existing todos or mark them complete
  • 📊 Get stats - View todo statistics by file

Prerequisites

  1. Obsidian with the following plugins installed and enabled:

    • Local REST API
    • Dataview
    • Todos REST API (this plugin)
  2. Node.js 18+ installed

Installation

From npm (coming soon)

npm install -g obsidian-todos-mcp-server

From source

cd mcp-server
npm install
npm run build

Configuration

Environment Variables

  • OBSIDIAN_API_URL - Base URL for the REST API (default: http://localhost:27124)
  • OBSIDIAN_API_KEY - API key if authentication is enabled

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "obsidian-todos": {
      "command": "npx",
      "args": ["-y", "obsidian-todos-mcp-server"],
      "env": {
        "OBSIDIAN_API_URL": "http://localhost:27124"
      }
    }
  }
}

Or use the direct binary name after npm link:

{
  "mcpServers": {
    "obsidian-todos": {
      "command": "obsidian-todos-mcp",
      "env": {
        "OBSIDIAN_API_URL": "http://localhost:27124"
      }
    }
  }
}

Or if running from source:

{
  "mcpServers": {
    "obsidian-todos": {
      "command": "node",
      "args": ["/path/to/obsidian-todos-api/mcp-server/dist/index.js"],
      "env": {
        "OBSIDIAN_API_URL": "http://localhost:27124"
      }
    }
  }
}

Available Tools

`list_todos`

Lists all incomplete todos from your Obsidian vault.

Example:

// No parameters needed
await use_mcp_tool({
  server_name: "obsidian-todos",
  tool_name: "list_todos",
  arguments: {}
});

`add_todo`

Adds a new todo to today's daily note.

Parameters:

  • text (string, required) - The todo text

Example:

await use_mcp_tool({
  server_name: "obsidian-todos",
  tool_name: "add_todo",
  arguments: {
    text: "Review pull requests"
  }
});

`update_todo`

Updates an existing todo (mark complete, change text, etc.).

Parameters:

  • file (string, required) - Path to file containing the todo
  • line (number, required) - Line number of the todo (0-indexed)
  • text (string, optional) - New text for the todo
  • completed (boolean, optional) - Mark as complete/incomplete

Example:

await use_mcp_tool({
  server_name: "obsidian-todos",
  tool_name: "update_todo",
  arguments: {
    file: "Daily/2025-10-31.md",
    line: 5,
    completed: true
  }
});

`get_todo_stats`

Get statistics about your todos.

Example:

await use_mcp_tool({
  server_name: "obsidian-todos",
  tool_name: "get_todo_stats",
  arguments: {}
});

Development

# Watch mode for development
npm run dev

# Build for production
npm run build

# Test the server
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node dist/index.js

Troubleshooting

Connection Issues

  1. Ensure Obsidian Local REST API is running
  2. Check the API URL is correct (default: http://localhost:27124)
  3. Verify the Todos REST API plugin is enabled in Obsidian

Authentication Errors

If you have authentication enabled in Local REST API:

  1. Set the OBSIDIAN_API_KEY environment variable
  2. Or update your Claude Desktop config with the API key

License

MIT

Tools (4)

list_todosLists all incomplete todos from your Obsidian vault.
add_todoAdds a new todo to today's daily note.
update_todoUpdates an existing todo (mark complete, change text, etc.).
get_todo_statsGet statistics about your todos.

Environment Variables

OBSIDIAN_API_URLBase URL for the REST API (default: http://localhost:27124)
OBSIDIAN_API_KEYAPI key if authentication is enabled

Configuration

claude_desktop_config.json
{"mcpServers": {"obsidian-todos": {"command": "npx", "args": ["-y", "obsidian-todos-mcp-server"], "env": {"OBSIDIAN_API_URL": "http://localhost:27124"}}}}

Try it

List all my incomplete tasks from my Obsidian vault.
Add a new todo to my daily note: 'Review project documentation'.
Mark the todo on line 5 of my daily note as completed.
Show me the statistics for my current todo list.

Frequently Asked Questions

What are the key features of Obsidian Todos?

List all incomplete todos from your Obsidian vault. Create new todos directly in today's daily note. Modify existing todo text or toggle completion status. Retrieve todo statistics categorized by file.

What can I use Obsidian Todos for?

Quickly capturing tasks into your daily note during an AI-assisted brainstorming session. Automating the cleanup of completed tasks across your vault. Getting a high-level overview of task distribution across different project notes. Updating task status without leaving the Claude interface.

How do I install Obsidian Todos?

Install Obsidian Todos by running: npx -y obsidian-todos-mcp-server

What MCP clients work with Obsidian Todos?

Obsidian Todos works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Obsidian Todos docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare