anaconda-mcp is a CLI and server for exposing conda environment management tools to MCP-enabled AI coding assistants. It acts as a unified MCP endpoint, giving AI assistants like Claude, Cursor, and VS Code awareness of your conda environments, packages, and channel configurations.
This guide provides an overview of the anaconda-mcp CLI, its commands, and core concepts. For a walkthrough of how to add Anaconda MCP Server to Claude Desktop’s configuration automatically and manual JSON configuration details, see the Claude Desktop integration guide.
Installation
Basic usage
Start the MCP server
This command starts the Anaconda MCP Server using the default configuration, binding to the default host and port.Discover available MCP servers
This command lists all MCP servers available in the current conda environment and the tools they expose.Compose multiple MCP servers
This command combines multiple MCP servers from the current environment into a single unified server.Configure Claude Desktop
This command automatically configures Claude Desktop to connect to Anaconda MCP Server.Configuration
Anaconda MCP Server is configured using amcp_compose.toml.template file, which is rendered at startup into a temporary configuration file. This template approach allows dynamic values such as the Python interpreter path to be resolved at runtime without hardcoding paths.
Always edit
If you’re using a client other than Claude Desktop, also see Python executable configuration for details on how to set the Python interpreter path.
mcp_compose.toml.template, not mcp_compose.toml. Anaconda MCP detects whether mcp_compose.toml.template exists on startup. If it exists, the template is rendered at runtime (resolving placeholders like {{PYTHON_EXECUTABLE}}) and the resulting config is used. If the template is absent, mcp_compose.toml is used as a fallback.If you’re using a client other than Claude Desktop, also see Python executable configuration for details on how to set the Python interpreter path.
anaconda_mcp package directory within your conda environment’s site-packages:
- macOS/Linux
- Windows
--config flag to the serve command:
Composer settings
The[composer] section defines the identity and behavior of the unified MCP server, including how tool name conflicts are handled when multiple downstream servers expose tools with the same name.
prefix conflict resolution strategy is recommended as it prefixes tool names with the server name to avoid collisions. See Configuration options below for details on all available conflict_resolution options.
Transport configuration
The[transport] section configures how MCP clients connect to the server. Use STDIO for local development or streamable HTTP when running as a shared network service.
Server configuration
The[[servers]] section defines the downstream MCP servers that Anaconda MCP Server composes. Each server’s tools become available through the single unified endpoint.
STDIO servers run as subprocesses:
Tool manager
The[tool_manager] section controls how tools are named and organized. Use aliases to expose tools under shorter, more intuitive names without modifying the underlying servers.
Configuration options
Example configuration
Python executable configuration
Anaconda MCP Server uses a{{PYTHON_EXECUTABLE}} placeholder in mcp_compose.toml.template to dynamically resolve the Python interpreter path at startup. By default, it uses the Python interpreter running anaconda-mcp.
To override this, set the ANACONDA_MCP_PYTHON_EXECUTABLE environment variable to the interpreter you want to use:
anaconda-mcp and the downstream MCP servers need to run in different conda environments. If you’re using a client other than Claude Desktop, you must set this variable so the client can locate the Python interpreter used to run the MCP server.