fastmcp.cli.install.claude_desktop

Claude Desktop integration for FastMCP install using Cyclopts.

Functions

get_claude_config_path

get_claude_config_path() -> Path | None
Get the Claude config directory based on platform.

install_claude_desktop

install_claude_desktop(file: Path, server_object: str | None, name: str) -> bool
Install FastMCP server in Claude Desktop. Args:
  • file: Path to the server file
  • server_object: Optional server object name (for :object suffix)
  • name: Name for the server in Claude’s config
  • with_editable: Optional directory to install in editable mode
  • with_packages: Optional list of additional packages to install
  • env_vars: Optional dictionary of environment variables
Returns:
  • True if installation was successful, False otherwise

claude_desktop_command

claude_desktop_command(server_spec: str) -> None
Install an MCP server in Claude Desktop. Args:
  • server_spec: Python file to install, optionally with :object suffix