Unofficial MCP server for Leantime: 42 agent-first tools, backup/restore, dry-run validation
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
mcp-name: io.github.4lador/leantime-mcp
An unofficial Model Context Protocol server for Leantime, designed agent-first: it lets LLM tools (opencode, Claude Code, Claude Desktop, Cursor, Codex, or any MCP client) work on your Leantime projects through 42 tools with dry-run validation, bulk operations, backup/restore and one-call project context.
It is an independent, open-source integration β stdio only, running locally with your own API key and your own instance. It does not aim to replace Leantime's official offerings; if you want vendor-supported integrations, use those.
~3 MB self-contained binary (rustls β no system OpenSSL), ~1.2 ms median startup and ~5 MB idle memory (VmRSS after handshake β measured on a Linux x86_64 dev machine, n=100 spawns).
Documentation: Quick start Β· Configuration Β· Safety Β· Tools Β· Troubleshooting Β· Harness setup Β· Backup & recovery Β· Migration from v1.x Β· CHANGELOG Β· CONTRIBUTING Β· SECURITY
An example session (abridged):
You: What's the status of the Acme launch project?
Agent calls
leantime_project_contextβ one call returning progress, health, sprint and milestones:Agent: Acme launch is at 64.5% (180 of 279 tickets done). 99 tickets are open β 7 overdue, 3 unassigned, none blocked. Sprint 4 ends in 6 days with 8 open tickets; the milestone in progress (PHASE 8) sits at 47.8%.
leantime_project_context β the whole project picture in one call (progress, health, sprint, milestones), under 4 KBdryRun: true on every mutation β same validations, from β to diffs on updates, no write requestsidempotencyKey on creation tools β a retried call with an already-succeeded key replays the original result instead of writing a duplicatetruncated on capped lists, changed/unchanged diffs on updates β agents see what a call actually didLEANTIME_MCP_PROFILE=readonly β a server-wide execution profile that removes write capabilities entirelyLEANTIME_MCP_BACKUP_RETENTION_DAYS), atomic backup writes, and a restore manifest mapping every oldβnew idLEANTIME_MCP_DESTRUCTIVE_POLICY=deny as an emergency stopLinux / macOS (x86_64, aarch64):
Windows (PowerShell):
Both installers verify the published SHA-256 checksum before installing and abort on mismatch. Release binaries cover all 5 targets β Linux (x86_64, aarch64), Windows x86_64 and macOS (Intel, ARM) β on the releases page.
Via cargo (requires the Rust toolchain):
From source:
Your Leantime API key: My Account β API Keys β Generate on your instance.
| Harness | Default scope | Config file |
|---|---|---|
| opencode | global | ~/.opencode/opencode.json |
| Claude Code | project | ./.mcp.json |
| Claude Desktop | global | claude_desktop_config.json (path per OS) |
| Cursor | global | ~/.cursor/mcp.json |
| Codex | global | ~/.codex/config.toml |
Every generated config is a bare command with no credentials β the binary resolves them from the keyring at startup. Project-scoped setups, --scope/--instance/--name options and multiple instances: see Harness setup.
Credentials live in named instance profiles β ~/.config/leantime/instances/<name>/ (api-key, mode 0600, and instance-url), with a default file naming the default. The key is read from the keyring file or environment β it is not accepted as a command-line argument (shell history) and is not logged; key commands are CLI-only and are not exposed as MCP tools.
LEANTIME_URL / LEANTIME_API_KEY environment variables remain available as per-run overrides; LEANTIME_INSTANCE selects a profile. Resolution order: env (explicit override) β LEANTIME_INSTANCE profile β the default file.
This software is provided without warranty (MIT). It drives Leantime with your API key on your behalf β back up your Leantime data before letting agents operate on it.
confirm: true required by default; LEANTIME_MCP_DESTRUCTIVE_POLICY=deny refuses them outright, allow skips the gate for CI). Project hiding/deletion is intentionally not exposed.dryRun: true β validations run, updates resolve from β to values (with status labels), bulk tools return per-item previews, and no write request is sent. Agent guidance is built into the tool descriptions on a three-tier policy: direct execution for explicit values, dry-run-then-confirm when the agent chose the values itself, dry-run mandated for bulk.editorId validated against the real user list, or an explicit unassigned: true).tools/list (no context-window cost) and calling one is refused with an actionable error. Read-only mode: leantmcp tools disable all && leantmcp tools enable readonly. State is stored per instance profile.leantime_backup_project (MCP) or leantmcp backup (CLI) snapshot a project cheaply β agents are instructed to use it before bulk modifications. See Backup & recovery.42 tools across 9 domains: projects & clients (8), tickets (10), comments (4), time tracking (4), milestones (6), sprints (4), users (1), bulk operations (3), backup & context (2). Updates use the patch API β only provided fields change. Descriptions follow a Markdown subset converted server-side; raw HTML in input is escaped.
| Markdown | Result |
|---|---|
# β¦ #### | Headings (levels 5+ clamp to h4) |
| blank-line separated text | Paragraphs (single newlines become line breaks) |
- item / 1. item | Unordered / ordered lists (nesting supported) |
- [ ] x / - [x] x | Interactive checklists |
**bold**, *italic*, ~~strike~~ | Emphasis |
`code` and fenced ``` blocks | Inline and block code |
[label](https://β¦) | Links (http/https/mailto only) |
> quote | Blockquote |
--- | Horizontal rule |
Raw HTML in descriptions is escaped before reaching Leantime β it renders as literal text.
Projects & clients
| Tool | Description |
|---|---|
leantime_list_projects | List all projects |
leantime_get_project | Get project details |
leantime_get_project_progress | Get project progress metrics |
leantime_create_project | Create a project (Markdown details, clientId required) |
leantime_update_project | Update a project (patch β only provided fields change) |
leantime_find_projects | Search projects by name |
leantime_list_project_users | List users assigned to a project (valid editorId candidates) |
leantime_list_clients | List clients (clientId needed to create projects) |
Tickets
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/leantime-mcp-unofficial)<a href="https://allmcps.com/mcp/leantime-mcp-unofficial"><img src="https://allmcps.com/api/badge/leantime-mcp-unofficial?style=directory" alt="Leantime MCP (Unofficial) on AllMCPs" /></a>