atripathy86/cmf-mcp-server
If you are the rightful owner of cmf-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server for CMF Server that exposes CMF Server functionality as tools for AI assistants.
cmf-mcp-server
A Model Context Protocol (MCP) server for CMF Server. This server exposes CMF Server functionality as tools that can be used by AI assistants.
Dependencies
Docker
Environment
Create a .env
file in the project root with CMF credentials. Follow example.env
Project Structure
The project follows a modular organization for better maintainability:
/
āāā main.py # Main application entry point
āāā tools/ # MCP CMF tools organized by functionality
ā āāā __init__.py
ā āāā pipeline.py # Pipeline-related tools
| āāā execution.py # Execution-related tools
| āāā artifact.py # Artifact-related tools
| āāā additional.oy # Additional / Miscellaneous tools
āāā resources/ # MCP resources
ā āāā __init__.py
ā āāā common.py # Common resources (cmf://, version://)
āāā prompts/ # MCP prompts
ā āāā __init__.py
ā āāā guide.py # CMF MCP Guide for LLMs
āāā docker-compose.yml # Docker Compose configuration for production
āāā Dockerfile # Docker build configuration
Running the Server
Using Docker
# Standard deployment
docker-compose up --build -d
docker-compose logs -f
The server will be available at http://localhost:8382
MCP Inspector
Can run MCP inspector using uv
and the mcp
CLI:
uv run mcp dev main.py
This will start an interactive interface at http://localhost:6274
where tools and resources are tested.
API
This MCP server exposes the following resources and tools. It can work across one or more CMF servers configured in .env:
Resources
CMF://
: Returns information about all configured CMF Serversversion://
: Returns the MCP server versionlist-tools://
: Returns a list of tool categorieslist-tools://{category}
: Returns a list of tools within a specific category
Tools
Each tool call returns results as a list of dictionaries with the following structure:
[
{
"CMF": "CMF Name",
"data": [...] # Result data from this CMF Server
},
...
]
Pipeline
cmf_show_pipelines
: Lists all Pipelines in CMF server
Execution
cmf_show_executions
: Lists all executions for a Pipeline in CMF Servercmf_show_execution_detail
: Lists detailed executions for a Pipeline in CMF Servercmf_execution_lineage
: Fetch execution lineage for aselected_uuid
andspecific_pipeline
Artifact
cmf_show_artifact_types
: Lists all artifact types in CMF Server (across all Pipelines)cmf_show_artifact_detail
: Lists artifact details for a specificartifact_type
in aspecific_pipeline
cmf_artifact_lineage
: Fetch artifact lineage for a pipeline
Addtional
cmf_show_model_card
: Get model cardcmf_show_python_env
: Get Python Environmentcmf_mlmd_pull
: Fetch mlmd as a filecmf_mlmd_push
: Push mlmd as POST body
License
- Apache 2.0 License
Usage
- To use in VSCode with properly configured copilot:
- Add a .vscode in current project.
- Add the following to:
./vscode/mcp.json
- VSCode will work only with
tools
in MCP server. It doesn't know how to interpreteresources
andprompts
yet{ "servers": { "cmf-mcp-server": { "type": "sse", "url": "http://localhost:8382/sse", "headers": { "VERSION": "1.2" } } } }
- To use in n8n
- To use in Langflow
- To use in Claude Desktop
- To use in Cursor
Configuration/Setup
- This will read the pyproject.toml file and create requirements.txt
pip install pip-tools
pip-compile pyproject.toml
- This will read the pyproject.toml file and create a uv.lock file with the locked dependencies.
pip install uv uv lock