emperor-vikunja
This is an MCP server for Vikunja that lets clients read tasks and projects, and optionally create/update tasks and comments when writable mode is enabled.
List projects, including id, title, parent project, and open-task count (up to 100).
List tasks, open by default, sorted by priority then due date; filter by project, label, done status, due date, search text, and limit up to 100.
Get one task by id, including all fields, plain-text description, and the 50 most recent comments with author and date.
With
--writable: create tasks with project, title, Markdown description, labels, assignees, priority, and due date.With
--writable: update tasks by changing title, description, done status, priority, due date, labels, assignees, or project.With
--writable: add Markdown comments to tasks.Read-only by default: without writable mode, only the read tools are listed and callable.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@emperor-vikunja show me my open tasks sorted by priority"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
emperor-vikunja
An MCP server for Vikunja, the open-source task manager. Let Claude, kowalski or any MCP client list, read, create and update your tasks, comment on them and see your projects.
Built on emperor-mcp (Emperor Profile P1.1):
Stateless Streamable HTTP at
/mcp, plus stdio for desktop clients.Your token is forwarded, never stored. Over HTTP each request brings its own
Authorization: Bearer <token>; the server passes it to Vikunja and forgets it. There are no default or test tokens.Framed output. Task text written by people (titles, descriptions, comments) reaches the model marked as messages for the user, never as instructions for the model.
Read-only unless you say otherwise. Started plain, the server offers only the three read tools;
--writable(orVIKUNJA_WRITABLE=true) adds the three that change tasks.Six annotated tools with compact definitions, a
doctorsubcommand, Markdown in and plain text out.Clear auth failures. When Vikunja refuses the token, the MCP response over HTTP is a
401or403, so the client can ask for a new token.
Tools
Tool | Listed | Annotations | What it does |
| always | read-only | Tasks sorted by priority, then due date. Filters: |
| always | read-only | One task by |
| with | write, not idempotent |
|
| with | write, destructive, idempotent |
|
| with | write, not idempotent | Add a Markdown comment to task |
| always | read-only | Projects (up to 100) with id, title, parent and number of open tasks. |
Without --writable the write tools are not in the server at all: they are neither listed nor
callable, so neither the model nor text it reads can reach them.
Every tool is marked open-world (it talks to a Vikunja that other people change).
update_task is marked destructive because a new title or description replaces the old text,
which Vikunja does not keep, and labels and assignees can be removed; it is idempotent because
the same call twice leaves the task as one call did.
Labels are named by title. A label that does not exist is an error unless the call passes
create_missing_labels: true, so a typo does not quietly add a new label. Assignees are
usernames (exact, case-insensitive; a leading @ is fine). Names are checked before anything
is written: a bad label or username leaves no half-made task.
Priority: 0 unset, 1 low, 2 medium, 3 high, 4 urgent, 5 do now. Dates: YYYY-MM-DD (read as
00:00 UTC) or ISO-8601; dates come back as RFC 3339, or null when unset.
Descriptions and comments are stored by Vikunja as HTML. What the model writes in Markdown is rendered to HTML on the way in (raw HTML in the Markdown is escaped, not passed through); HTML read back is rendered to plain text.
Related MCP server: vikunja-mcp
Install
From a release (Linux x86_64, macOS arm64 and x86_64, Windows x86_64): download the archive for
your platform from Releases and put
emperor-vikunja on your PATH.
From source (Rust 1.88 or newer):
cargo install --git https://github.com/yarenty/emperor-vikunjaGet a token
In Vikunja open Settings > API Tokens > Create a token, pick an expiry date and tick these
permissions (the minimum the six tools need with --writable):
Group | Permissions |
projects |
|
tasks |
|
tasks_comments |
|
tasks_labels |
|
tasks_assignees |
|
labels |
|
other |
|
The server is read-only by default; for a read-only assistant give it a token with only the
read_all / read_one permissions (and other: user for doctor).
Run
Local (stdio)
export VIKUNJA_TOKEN=... # from Settings > API Tokens
emperor-vikunja serve --stdio --base-url https://vikunja.example.com # read-only
emperor-vikunja serve --stdio --base-url https://vikunja.example.com --writable # also create, update, commentDocker (stdio)
docker build -t emperor-vikunja https://github.com/yarenty/emperor-vikunja.git
docker run -i --rm -e VIKUNJA_URL=https://vikunja.example.com -e VIKUNJA_TOKEN emperor-vikunja
# read-only by default; to create, update and comment add -e VIKUNJA_WRITABLE=true
# (or --writable after the image name)The image runs emperor-vikunja serve --stdio as a non-root user; the Vikunja address comes
from VIKUNJA_URL.
Shared (HTTP)
# --writable: the users of this server may create, update and comment; leave it out for read-only
emperor-vikunja serve --base-url https://vikunja.example.com --bind 127.0.0.1:8034 --writable
# MCP endpoint: http://127.0.0.1:8034/mcp liveness: http://127.0.0.1:8034/healthEvery MCP request must carry Authorization: Bearer <token>; each user brings their own.
VIKUNJA_TOKEN is ignored in this mode, so one person's token can never answer another
person's request. Tool discovery (tools/list) works without a token.
When Vikunja refuses the token (401) or the token may not do this (403), the MCP response
carries that HTTP status (401 with WWW-Authenticate: Bearer error="invalid_token") and a
JSON-RPC error with code -32040 and data.httpStatus. Over stdio the client gets the same
JSON-RPC error.
Flags and headers
Flag | Env | Meaning |
|
| Vikunja address; |
|
| Also serve |
|
| Deprecated, no effect: read-only is the default. Still accepted so existing configurations start; a one-line note is logged. Given together with |
| Speak MCP over stdin/stdout; the token comes from | |
| HTTP listen address (default | |
| Accept only this | |
| Accept only this |
Request header (HTTP) | Meaning |
| The caller's Vikunja API token. Required for every tool call. |
| The Vikunja instance for this request, overriding |
With X-Upstream-Url one server can front several Vikunja instances. The server will then call
whichever https host a client names, with that client's token; run it where outbound calls to
arbitrary hosts are acceptable, or leave the header out at your proxy and rely on --base-url.
Logs go to stderr; RUST_LOG=debug for more. In production put the HTTP server behind a
reverse proxy that terminates TLS (Emperor Profile E5).
Connect
Claude Desktop (claude_desktop_config.json):
--writable lets Claude create, update and comment; drop it for a read-only connection.
{
"mcpServers": {
"vikunja": {
"command": "emperor-vikunja",
"args": ["serve", "--stdio", "--base-url", "https://vikunja.example.com", "--writable"],
"env": { "VIKUNJA_TOKEN": "<your token>" }
}
}
}Claude Code:
# stdio, read-only (the default)
claude mcp add vikunja-ro --env VIKUNJA_TOKEN=<your token> -- \
emperor-vikunja serve --stdio --base-url https://vikunja.example.com
# stdio, --writable: Claude may also create, update and comment
claude mcp add vikunja --env VIKUNJA_TOKEN=<your token> -- \
emperor-vikunja serve --stdio --base-url https://vikunja.example.com --writable
# or against a running HTTP server (its own --writable decides what is listed)
claude mcp add --transport http vikunja http://127.0.0.1:8034/mcp \
--header "Authorization: Bearer <your token>" \
--header "X-Upstream-Url: https://vikunja.example.com"kowalski (config.toml):
[[mcp.servers]]
name = "vikunja"
transport = "stdio"
# --writable: the agent may create, update and comment; drop it for read-only.
command = ["emperor-vikunja", "serve", "--stdio", "--base-url", "https://vikunja.example.com", "--writable"]
# VIKUNJA_TOKEN is read from kowalski's environment.
# or over HTTP (the server's own --writable decides what is listed)
[[mcp.servers]]
name = "vikunja-http"
transport = "http"
url = "http://127.0.0.1:8034/mcp"
headers = { Authorization = "Bearer <your token>", X-Upstream-Url = "https://vikunja.example.com" }Doctor
emperor-vikunja doctor checks the setup before you start the server and exits 1 when
something is broken, so scripts and container health checks can use it:
$ VIKUNJA_TOKEN=... emperor-vikunja doctor --base-url https://vikunja.example.com
emperor-vikunja 0.2.0 doctor
[ok ] base url https://vikunja.example.com/
[ok ] vikunja api Vikunja v2.7.1
[ok ] VIKUNJA_TOKEN set (43 chars)
[ok ] vikunja login token works for user alice
[ok ] mode read-only: get_task, list_projects, list_tasks (pass --writable or VIKUNJA_WRITABLE=true for create_task, update_task, comment)
[ok ] listen address 127.0.0.1:8034 is free
[ok ] tool budget 3 of at most 8 tools
all good (0 warning(s))It checks that the URL parses, GET /api/v1/info answers, the token is set (only its length is
shown) and GET /api/v1/user accepts it, which tools the mode serves (three read tools by default,
all six with --writable; a warning when the deprecated --read-only is given), the listen address is free (skipped with --stdio), and the tool count is
within the emperor-mcp budget. Without VIKUNJA_TOKEN in HTTP mode the token line is a
warning, because the token comes per request; with --stdio it is a failure. The same goes for
--base-url: over HTTP its absence is a warning (requests must send X-Upstream-Url), with
--stdio a failure.
Compatibility
Tested against Vikunja v2.7 (the vikunja/vikunja image). Tasks are listed through GET /tasks
with Vikunja's filter syntax (done = false && project = 3 && labels in 5 && due_date < '...');
older releases that serve /tasks/all instead are picked up automatically, and every filter is
applied again locally so results stay right even where the server ignores part of it.
Build and test
cargo test # unit, fake-Vikunja, MCP HTTP and stdio tests
cargo test --test live_vikunja -- --ignored --nocapture # default and --writable against a real Vikunja in DockerLinks
Crate: crates.io/crates/emperor-vikunja, API docs on docs.rs
Container: build from the
Dockerfile; it serves stdio and readsVIKUNJA_URL,VIKUNJA_TOKENandVIKUNJA_WRITABLEListed in the official MCP Registry as mcp-name: io.github.yarenty/emperor-vikunja
How it compares with other task-manager MCP servers: docs/COMPARISON.md
License
Licensed under either of
Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in emperor-vikunja by you shall be dual licensed as above, without any additional terms or conditions.
Available Tools
3 toolsget_taskARead-only
Read one task: every field, the description as text, and its comments with author and date (the 50 most recent; long text is cut).
Inputs: id (required).
list_projectsARead-only
List projects with id, title, parent project and number of open tasks (up to 100).
list_tasksARead-only
List tasks, open ones by default, sorted by priority then due date. Filters: project, label, done, due_before, search; limit up to 100.
Inputs: done, label, limit, search, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools target clearly distinct operations: fetching a single task with comments, listing projects, and listing/filtering tasks. list_tasks and get_task are easy to distinguish by cardinality and included data.
All tools follow a consistent snake_case verb_noun pattern (get_task, list_projects, list_tasks). No naming deviations or mixed conventions.
Three tools is thin for a full task-management server, though each earns its place. It feels more like a read-only slice than a complete toolset.
The surface is entirely read-only: there is no way to create, update, complete, or delete tasks, and no project mutation or label operations. Agents cannot accomplish typical task-management workflows with this set.
Maintenance
Related MCP Connectors
Unofficial community ClickUp MCP via personal API token. Not affiliated with ClickUp.
Local-first task manager: create, edit, and complete tasks, projects, and checklists via MCP.
Headless task management for bots, apps and AI agents. Remote MCP server, OAuth or access token.
Official Todoist MCP server. Manage tasks and projects. Hosted, no API key needed.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables interaction with Vikunja task management instances through natural language. Supports comprehensive project and task operations including CRUD, assignments, labels, comments, relations, and attachments.332MIT
- AlicenseNot gradedqualityDmaintenanceLightweight MCP server for Vikunja task management, providing tools to manage projects, tasks, labels, and comments via API.43 npmMIT
- AlicenseNot gradedqualityDmaintenanceBridges MCP clients to a self-hosted Vikunja instance, exposing tools for managing projects, tasks, labels, and comments.MIT
- AlicenseAqualityDmaintenanceEnables MCP clients to interact with a Vikunja instance through tools for listing, creating, updating, and removing tasks, projects, and labels. It deliberately avoids permanent task deletion, using a configurable label for soft removal instead.11MIT