Click MCP Server

Extend Click applications with Model Context Protocol (MCP) support

Local serverstdioPython

What is the Click MCP server?

Connect Click to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Extend Click applications with Model Context Protocol (MCP) support. The click mcp server is what makes that connection.

What the server does

A Python library that extends Click applications with Model Context Protocol (MCP) support, allowing AI agents to interact with CLI tools.

click-mcp provides a simple decorator that converts Click commands into MCP tools. This enables AI agents to discover and interact with your CLI applications programmatically.

  • Simple @click_mcp decorator syntax
  • Automatic conversion of Click commands to MCP tools
  • Support for nested command groups
  • Support for positional arguments
  • Stdio-based MCP server for easy integration

Installation

click-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Setup — The Setup tool exposed by this server
  • Testing — The Testing tool exposed by this server
  • Linting — The Linting tool exposed by this server
  • Building — The Building tool exposed by this server
  • Documentation — The Documentation tool exposed by this server

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Among the knowledge and memory options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Click's toolset — Setup, Testing, Linting and 2 more — is a fair guide to whether it matches your workflow. It is maintained by Stephen Crowe; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
SetupThe Setup tool exposed by this server.
TestingThe Testing tool exposed by this server.
LintingThe Linting tool exposed by this server.
BuildingThe Building tool exposed by this server.
DocumentationThe Documentation tool exposed by this server.

How to install the Click MCP server

{
  "mcpServers": {
    "click": {
      "command": "uvx",
      "args": ["click-mcp"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Click to Setup.
  • Use Click to Testing.
  • Use Click to Linting.

Frequently asked questions

It connects Click to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Setup, Testing, Linting, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Click directly.