
Itential
HTTP-SSEMCP server connecting LLMs to Itential Platform for network automation and workflow orchestration.
MCP server connecting LLMs to Itential Platform for network automation and workflow orchestration.
A Model Context Protocol (MCP) server that provides tools for connecting LLMs to Itential Platform. Enable AI assistants to manage network automations, orchestrate workflows, and monitor platform health.
uv
and make
The itential-mcp
application can be installed using either PyPI or it can be
run directly from source.
To install it from PyPI, simply use pip
:
pip install itential-mcp
The repository can also be clone the repository to your local environment to
work with the MCP server. The project uses uv
and make
so both tools
would need to be installed and available in your environment.
The following commands can be used to get started.
git clone https://github.com/itential/itential-mcp cd itential-mcp make build
Build and run as a container:
# Build the container image make container # Run the container with environment variables docker run -p 8000:8000 \ --env ITENTIAL_MCP_TRANSPORT=sse \ --env ITENTIAL_MCP_HOST=0.0.0.0 \ --env ITENTIAL_MCP_PORT=8000 \ --env ITENTIAL_MCP_PLATFORM_HOST=URL \ --env ITENTIAL_MCP_PLATFORM_CLIENT_ID=CLIENT_ID \ --env ITENTIAL_MCP_PLATFORM_CLIENT_SECRET=CLIENT_SECRET \ itential-mcp:devel
Start the MCP server with default settings (stdio transport):
itential-mcp --transport --host 0.0.0.0 --port 8000
Start with SSE transport:
itential-mcp --transport sse --host 0.0.0.0 --port 8000
Option | Description | Default |
---|---|---|
--transport | Transport protocol (stdio or sse) | stdio |
--host | Host address to listen on | localhost |
--port | Port to listen on | 8000 |
--log-level | Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL) | INFO |
Option | Description | Default |
---|---|---|
--platform-host | Itential Platform hostname | localhost |
--platform-port | Platform port (0 = auto-detect) | 0 |
--platform-disable-tls | Disable TLS for platform connection | false |
--platform-disable-verify | Disable certificate verification | false |
--platform-timeout | Connection timeout | 30 |
--platform-user | Username for authentication | admin |
--platform-password | Password for authentication | admin |
--platform-client-id | OAuth client ID | none |
--platform-client-secret | OAuth client secret | none |
All command line options can also be set using environment variables prefixed with ITENTIAL_MCP_
. For example:
export ITENTIAL_MCP_TRANSPORT=sse export ITENTIAL_MCP_PLATFORM_HOST=platform.example.com itential-mcp # Will use the environment variables
The MCP server provides the following tools for interaction with Itential Platform:
get_health
: Retrieve platform health status including memory, CPU usage, and service statusget_job_metrics
: Get aggregated workflow job metricsget_task_metrics
: Get aggregated workflow task metricsget_workflows
: List available workflowsstart_workflow
: Start a workflow with provided variables and permissionsget_jobs
: List all jobs (with optional filtering)describe_job
: Get details about a specific job (based on job_id)get_command_templates
: List all configured command templatesdescribe_command_template
: Get details about a specific command templaterun_command_template
: Run a command template against a set of devicesget_devices
: Get a list of devices from Itential Platformrun_command
: Run a command against one or more devicesNote: See here for information about how to properly expose workflows to the MCP server
Adding a new tool is simple:
src/itential_mcp/tools/
directory or add a function to an existing fileContext
parameter annotation:from fastmcp import Context async def my_new_tool(ctx: Context) -> dict: """ Description of what the tool does Args: ctx (Context): The FastMCP Context object Returns: dict: The response data Raises: None """ # Get the platform client client = ctx.request_context.lifespan_context.get("client") # Make API requests res = await client.get("/your/api/path") # Return JSON-serializable results return res.json()
Tools are automatically discovered and registered when the server starts.
Run the test suite with:
make test
For test coverage information:
make coverage
Contributions are welcome! Please read our Code of Conduct before contributing.
git checkout -b feature/my-feature
git commit -am 'Add new feature'
git push origin feature/my-feature
Before submitting:
make premerge
to ensure tests pass and code style is correctThis project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Copyright (c) 2025 Itential, Inc