Skip to main content
Glama

vikunja-mcp

Minimal Model Context Protocol server for a self-hosted Vikunja. It lets Claude Code (or any MCP client) read a project's tasks, create and close them and leave comments, so an agent can work through a board on its own.

Python, stdio transport, two dependencies (mcp, httpx). No install step: uvx runs it straight from this repository.

Tools

Tool

What it does

list_projects()

Projects with id, title and archived flag.

list_tasks(project?, include_done=false)

Tasks of a project (id or title). Pending only unless include_done.

get_task(task_id)

One task with its full description as plain text.

create_task(title, description?, project?)

New task; plain-text description, blank line between paragraphs.

update_task(task_id, done?, title?, description?)

Close (done=true), reopen or edit.

add_comment(task_id, text)

Comment on a task (e.g. the commit that closed it).

list_comments(task_id)

Comments in order.

project may be omitted wherever VIKUNJA_PROJECT is set.

Related MCP server: vikunja-mcp

Per-repo setup (Claude Code)

One command in the repo root writes (or completes) its .mcp.json:

uvx --from git+https://github.com/zurdi15/vikunja-mcp vikunja-mcp-init "My project" --url https://vikunja.example.net

--url can be omitted when VIKUNJA_URL is in the environment; the project defaults to the folder name. Commit the file. The URL and the default project are plain values; the token is not in the file — it is read from the environment of whoever runs the agent:

{
  "mcpServers": {
    "vikunja": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/zurdi15/vikunja-mcp", "vikunja-mcp"],
      "env": {
        "VIKUNJA_URL": "https://vikunja.example.net",
        "VIKUNJA_PROJECT": "My project",
        "VIKUNJA_TOKEN": "${VIKUNJA_TOKEN}"
      }
    }
  }
}

Claude Code expands ${VAR} in .mcp.json from the environment, so each machine only needs uv and the variable:

# Linux / macOS: in ~/.bashrc, ~/.zshrc or a file you source
export VIKUNJA_TOKEN=tk_…

# Windows (PowerShell, user scope, persistent)
[Environment]::SetEnvironmentVariable('VIKUNJA_TOKEN', 'tk_…', 'User')

The token is an API token created in Vikunja (Settings → API tokens) with read/write access to tasks and comments. Rotate it there and update the variable; nothing else changes.

The first time Claude Code opens a repo with a .mcp.json it asks whether to trust the project's MCP servers. Pin a revision with git+https://github.com/zurdi15/vikunja-mcp@v0.1.0 if you want builds to be reproducible.

Private setup (no file in the repo)

For a repo you don't want a .mcp.json in (an open-source project, say), register the same entry for yourself only, in that directory only:

uvx --from git+https://github.com/zurdi15/vikunja-mcp vikunja-mcp-init "My project" --url https://vikunja.example.net --local

It runs claude mcp add-json vikunja ... --scope local, which Claude Code keeps in ~/.claude.json under the project path. ${VIKUNJA_TOKEN} is still read from the environment, and a local entry wins over a .mcp.json one with the same name. To move an existing .mcp.json entry out of a repo:

claude mcp add-json vikunja --scope local "$(jq -c .mcpServers.vikunja .mcp.json)" && rm .mcp.json

Environment

Variable

Required

Meaning

VIKUNJA_URL

yes

Base URL of the instance, without /api/v1.

VIKUNJA_TOKEN

yes

API token. Never written to disk by this server, never logged.

VIKUNJA_PROJECT

no

Default project (id or title) for tools with an optional project.

Local development

uv run vikunja-mcp                    # starts the stdio server (waits for a client)
uv run --with mcp python scripts/smoke.py   # spawns it and calls list_projects/list_tasks

License

MIT

Available Tools

7 tools
add_commentA

Añade un comentario a una tarea (p. ej. el commit o la versión que la cerró).

Inputs: text (required), task_id (required).

create_taskA

Crea una tarea en un proyecto (sin project usa VIKUNJA_PROJECT). La descripción es texto plano; los párrafos se separan con línea en blanco.

Inputs: title (required), project, description.

get_taskD

Una tarea con su descripción completa (texto plano).

Inputs: task_id (required).

list_commentsB

Comentarios de una tarea, en orden.

Inputs: task_id (required). Returns: result

list_projectsA

Lista los proyectos de Vikunja (id, título, archivado).

Inputs: no named parameters. Returns: result

list_tasksA

Tareas de un proyecto (id o título; sin project usa VIKUNJA_PROJECT). Por defecto solo las pendientes, ordenadas por id.

Inputs: project, include_done.

update_taskA

Actualiza una tarea: done=true la cierra (false la reabre); título y descripción opcionales. Los campos no indicados se conservan.

Inputs: task_id (required), done, title, description.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a distinct resource-action combination: projects vs tasks vs comments, with list/get/create/update/comment operations clearly separated. There is no overlap or ambiguity between tools like list_tasks and get_task, which are standard list-detail pairs.

    Naming Consistency5/5

    All tool names follow the consistent snake_case verb_noun pattern (list_, get_, create_, update_, add_). The verbs are simple and predictable, making the API easy to learn and navigate.

    Tool Count5/5

    Seven tools is well-scoped for a project/task management integration. Each tool covers a necessary operation without redundancy or bloat, fitting comfortably in the ideal 3-15 tool range.

    Completeness4/5

    Core task lifecycle is covered well: create, get, update (including done state), plus comments (add/list). The main gap is the lack of a delete task tool, and projects are only listed, not created or updated, but these are minor for typical task management use.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables interaction with Vikunja task management instances through natural language. Supports comprehensive project and task operations including CRUD, assignments, labels, comments, relations, and attachments.
      33
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Bridges MCP clients to a self-hosted Vikunja instance, exposing tools for managing projects, tasks, labels, and comments.
      MIT