1. Conduid
  2. Communication
  3. Leantime MCP
MCP server · Communication

Leantime MCP

MCP server for leantime.io that uses the leantime JsonRPC 2.0 API and does not need the leantime MCP plugin.

Unclaimed last commit a year ago comms
34Low

Scored 4 days ago · breakdown

About Leantime MCP

Leantime MCP is an MCP server published by daniel-eder in the Communication category: mCP server for leantime.io that uses the leantime JsonRPC 2.0 API and does not need the leantime MCP plugin.

The repository has 9 stars and 11 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/daniel-eder/leantime-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Leantime MCP

Powered by Claude · Grounded in docs

I know everything about Leantime MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 12 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • !License declaredNo license file. Legally you have no right to use it in a product.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.

1 check has not been run yet.

README

Leantime MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with access to Leantime's (leantime.io) JsonRPC 2.0 API. This enables AI tools like Claude to interact with Leantime projects, tickets, timesheets, users, and more through a standardized interface.

This server uses FastMCP which supports multiple transport protocols including stdio, HTTP, WebSocket, and SSE, making it suitable for various deployment scenarios.

The leantime mcp plugin is not needed. If you own the leantime mcp plugin consider using https://github.com/Leantime/php-mcp-server instead.

MCP Client Configuration

This project uses uv for fast, reliable Python package management. Ensure it is installed before modifying your MCP settings.

To use with Claude Desktop or other MCP clients, add to your MCP settings:

STDIO Transport (Default)

For local MCP clients like Claude Desktop that communicate via standard input/output:

{
  "mcpServers": {
    "leantime": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/daniel-eder/leantime-mcp.git",
        "leantime-mcp"
      ],
      "env": {
        "LEANTIME_URL": "https://your-leantime-instance.com",
        "LEANTIME_API_KEY": "your_api_key_here",
        "LEANTIME_USER_EMAIL": "your_email@example.com"
      }
    }
  }
}

HTTP Transport

For remote HTTP connections, first start the server with HTTP transport (see Running the Server), then configure your MCP client to connect to the HTTP endpoint:

{
  "mcpServers": {
    "leantime-http": {
      "url": "http://localhost:8000/mcp",
      "transport": "streamableHttp"
    }
  }
}

Note: The HTTP transport configuration depends on your MCP client's support for HTTP connections. The server must be running separately using the fastmcp run command with --transport http option. Make sure to set the required environment variables (LEANTIME_URL, LEANTIME_API_KEY, LEANTIME_USER_EMAIL) when starting the HTTP server.

Getting a Leantime API Key

  1. Log in to your Leantime instance
  2. Go to Company -> API Keys
  3. Generate a new API key

Running the Server

This server supports multiple transport protocols for different deployment scenarios:

STDIO Transport (Default)

For use with MCP clients like Claude Desktop that communicate via standard input/output:

# Using the entry point
leantime-mcp

# Or run directly
python -m src.leantime_mcp.server

HTTP Transport

For remote access via HTTP, useful for web services and remote clients:

# Run on default port 8000
fastmcp run src/leantime_mcp/server.py:app --transport http

# Run on custom port
fastmcp run src/leantime_mcp/server.py:app --transport http --port 9000

# When developing (without installing the package), use uv run:
uv run fastmcp run src/leantime_mcp/server.py:app --transport http

Once running, the MCP endpoint will be available at http://localhost:8000/mcp (or your custom network address/port).

SSE Transport (Legacy)

Server-Sent Events transport for legacy web applications:

fastmcp run src/leantime_mcp/server.py:app --transport sse --port 8000

Using FastMCP CLI

The FastMCP CLI provides additional options and better control:

# See all available options
fastmcp run --help

# Run with debug logging
fastmcp run src/leantime_mcp/server.py:app --transport http --log-level DEBUG

Environment Variables

Set these environment variables for all transport types:

export LEANTIME_URL="https://your-leantime-instance.com"
export LEANTIME_API_KEY="your_api_key_here"
export LEANTIME_USER_EMAIL="your_email@example.com"

Available Tools

The server provides the following MCP tools:

  • get_project - Get details of a specific project
  • list_projects - List all accessible projects
  • create_project - Create a new project
  • get_ticket - Get ticket/task details
  • list_tickets - List tickets (optionally filtered by project)
  • create_ticket - Create a new ticket
  • update_ticket - Update an existing ticket
  • get_user - Get user details
  • list_users - List all users
  • add_comment - Add a comment to a ticket or project
  • get_comments - Get comments for a module
  • add_timesheet - Log time to a ticket
  • get_timesheets - Query timesheet entries

Development

Setup Development Environment

# Clone the repository
git clone https://github.com/daniel-eder/leantime-mcp.git
cd leantime-mcp

# Sync dependencies (includes dev dependencies)
uv sync

# Run from source
uv run leantime-mcp

Links

Licensing

This project uses REUSE for clear and comprehensive licensing information, following the FSFE REUSE specification.

License Information

All files contain SPDX license headers for clear identification. To check compliance:

uvx reuse lint

README fetched from the repository 12 hours ago. The original is authoritative.

Questions

About Leantime MCP

How do I install Leantime MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Leantime MCP safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 3 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Leantime MCP still maintained?

The last commit was a year ago and 6 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.