cml2-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CML_URL | Yes | The URL of the CML controller, e.g. https://cml.example.net/ | |
| CML_PASSWORD | Yes | Password for CML authentication | |
| CML_USERNAME | Yes | Username for CML authentication | |
| CML_CACHE_DIR | No | Directory for token and OpenAPI cache (default: ~/.cache/cml/) | ~/.cache/cml/ |
| CML_VERIFY_SSL | No | Whether to verify TLS certificates (default: off, as CML often uses self-signed certs). Set to 'true' to enable. | false |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| cml_openapiA | Return CML2's live OpenAPI spec as a JSON string. Cached at $CML_CACHE_DIR/openapi.json (default ~/.cache/cml/) for 24h. Set refresh=True to force a re-fetch. |
| cml_apiA | Authenticated CML2 REST call. Args: method: HTTP method (GET/POST/PUT/PATCH/DELETE). path: Path AFTER /api/v0, must start with '/'. Example: '/labs'. body: Optional JSON-serializable value (object/array/string/etc.). Sent as the request body with Content-Type: application/json. Returns the raw response body as text (callers should json.parse if needed). Re-authenticates and retries once on HTTP 401. Raises on non-2xx. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| openapi_resource | The live (24h-cached) OpenAPI spec, exposed as an MCP resource. |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/higebu/cml2-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server