Note: This feature is currently in beta and is available only to early adopters.
Unimus 2.10.0 and newer
...
includes a built-in
...
Model Context Protocol (MCP) server that allows compatible AI Agent harnesses to interact with Unimus through MCP tools.
The Model Context Protocol (MCP) is a standard that enables Agents to communicate with external systems and access their capabilities through a predefined set of tools.
The Unimus MCP server exposes 69 read-only tools, providing Agents (their harnesses) with access to information and functionality across Unimus without requiring direct connections to network devices. These tools cover areas such as device inventory, configuration backups and change history, device details, compliance results, automation data, and other information available in Unimus.
The MCP server is enabled by default. An MCP token is required to authenticate MCP clients and establish a connection.
Requirements
- Unimus 2.10.0 or newer
- An AI client Agent harness that supports remote MCP servers over Streamable HTTP(S) (for example Claude Code or , OpenAI Codex or Hermes)
Network connectivity between the Agent harness and the Unimus server
Configuration
To connect an Agent harness to the Unimus MCP server, you need to create an MCP token and configure the harness to use the Unimus MCP server.
1. Create an MCP token
Go toAn MCP token is used to authenticate the MCP client used by the AI harness when connecting to Unimus. Its permissions determine which Unimus information the client can access.
SettingNavigate to User Management > MCP tokens (admin only).
- Create a new MCP token the AI client will use.
- Leave sensitive values such as device credentials hidden unless a workflow needs them.
- Copy the token.
2. Connect your AI client
- .
Configure the token permissions according to the intended use case.
Copy the generated token. You will need it when configuring the AI harness.
Note: Treat MCP tokens as credentials. Do not share them or expose them in publicly accessible configuration files or source repositories. Grant only the permissions required for the intended use case.
2. Configure the AI harness
Configure your AI harness to connect to the Unimus MCP server using the following parameters:
Parameter | Value |
|---|---|
URL | Unimus |
MCP endpoint (eg., http://localhost:8085/mcp) |
Transport | Streamable HTTP |
| Authentication | HTTP Bearer token |
HTTP Header |
|
Replace <token> with the MCP token generated in the previous step. The endpoint can use HTTP or HTTPS, depending on how the Unimus server or a reverse proxy in front of it is configured.
Example for Claude Code:
To add the Unimus MCP server to Claude Code, run the following command in a terminal (not inside a Claude Code session):
| No Format |
|---|
claude mcp add --transport http unimus http://localhost:8085/mcp --header "Authorization: Bearer <token>" |
Replace <token> with the MCP token generated in the previous step.
By default, the MCP server configuration is available only in the current project. To make it available across all projects, add the --scope user parameter:
| No Format |
|---|
claude mcp add --transport http --scope user unimus http://localhost:8085/mcp --header "Authorization: Bearer <token>" |
Note: If the AI harness runs on a different machine from the Unimus server, replace localhost with the hostname or IP address through which the harness can reach Unimus.
3. Verify the connection
/mcp.In Claude Code, you can check the connection using either of the following methods:
Run
claude mcp listin a terminal.Run
/mcpinside a Claude Code session.
The Unimus MCP server should appear in the list of configured servers with a connected status.
Note: Adding the MCP server configuration does not necessarily verify the connection or validate the authentication token. The connection is established when the AI harness attempts to communicate with the MCP server. If the token is invalid or missing, the server returns HTTP 401 Unauthorized.
To verify that the AI harness can retrieve data from Unimus, try asking a question such as:
" and compare the answerHow many devices does Unimus manage?
Compare the response with the device count displayed in the Unimus dashboard.
Once the connection is working, the AI harness can use the available MCP tools to retrieve and analyze information from Unimus, subject to the permissions configured for the MCP token.
Examples of use
For practical examples of how AI harnesses can use the Unimus MCP server for network management tasks, see the blog article:
https://blog.unimus.net/unimus-mcp-and-ai-agents/
Troubleshooting
| Problem | What to check |
|---|---|
| HTTP 401 Unauthorized | Verify that the correct MCP token is configured in the Authorization header. |
| MCP server is unreachable | Verify the MCP endpoint URL and network connectivity between the AI harness and the Unimus server. |
| AI harness cannot retrieve expected information | Check whether the MCP token has the necessary permissions. |
| MCP server is unavailable | Verify whether the MCP server has been disabled using the Java startup parameter described below. |
Disabling the MCP
Add this to the Java startup parameters and restart Unimus:
| Code Block |
|---|
-Dunimus.core.ModelContextProtocol-disabled=true
|
server
The MCP server is enabled by default. If you do not want to make the MCP interface available, you can disable it by adding the following Java startup parameter:
| No Format |
|---|
-Dnetcore.mcp.server.enabled=false |
Add the parameter to the Unimus Java startup configuration:
On Windows:
Portable installation: Create a file named
Unimus.l4j.iniin the same directory as the Unimus executable.Installer installation: Add the parameter to
Unimus.l4j.iniinC:\Program Files\Unimus\.
If the Unimus.l4j.ini file already exists, add the parameter on a separate line.
On Linux:
Edit
/etc/default/unimus.Add the parameter on a separate line.
Restart Unimus for the change to take effect.

