conan-io/conan-mcp
Model Context Protocol server for Conan
Platform-specific configuration:
{
"mcpServers": {
"conan-mcp": {
"command": "npx",
"args": [
"-y",
"conan-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
A Model Context Protocol server for Conan package manager integration.
> *"Create a CMake library project with Conan that has the latest version of fmt > and openssl as requirements, install the dependencies and verify that the > libraries I depend on don't have serious vulnerabilities and have a license > that allows my application to be commercial."*
Add to your mcp.json:
{
"mcpServers": {
"conan": {
"command": "uvx",
"args": ["conan-mcp"]
}
}
}> Note: uvx is provided by uv. If you don't have uv installed, you can install it or use pip install conan-mcp and then use conan-mcp directly as the command.
By default, the server uses conan from the system PATH (or the virtual environment where the MCP server is running). If you need to use a specific Conan installation or version, you can set the CONAN_MCP_CONAN_PATH environment variable in your MCP configuration:
{
"mcpServers": {
"conan": {
"command": "uv",
"args": ["--directory", "/path/to/conan-mcp", "run", "conan-mcp"],
"env": {
"CONAN_MCP_CONAN_PATH": "/home/user/venv/bin/conan"
}
}
}
}If CONAN_MCP_CONAN_PATH is not set, the server will use conan from PATH or the virtual environment where the MCP server is running.
`get_conan_profile`:
Get Conan profile configuration
Parameters:
profile (optional): If provided, show that specific profile; otherwise, defaultUsage examples:
`list_conan_profiles`
List available Conan profiles
Parameters:
Usage examples:
Loading reviews...