Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 37 Next »

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 clients to access Unimus data through MCP tools.

The Model Context Protocol (MCP) is a standard that allows AI applications to communicate with external systems and retrieve information through a defined set of tools.

The Unimus MCP server exposes 69 read-only tools, allowing AI clients to retrieve and analyze information from Unimus without directly connecting to network devices. The MCP server is enabled by default. An MCP token is required to authenticate AI clients and establish a connection.

Requirements

  • Unimus 2.10.0 or newer
  • An AI client that supports remote MCP servers over Streamable HTTP (for example Claude Code or OpenAI Codex)
  • Network connectivity between the AI client and the Unimus server.

Configuration

To connect an AI client to the Unimus MCP server, you need to create an MCP token and configure the AI client to use the Unimus MCP server.

1. Create an MCP token

An MCP token is used to authenticate the AI client when connecting to Unimus. Its permissions determine which Unimus information the client can access.

  1. Navigate to User Management > MCP tokens (admin only).

  2. Create a new MCP token.
  3. Configure the token permissions according to the intended use case.

  4. Copy the generated token. You will need it when configuring the AI client.

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 client

Configure your AI client to connect to the Unimus MCP server using the following parameters:

Parameter

Value

URL

Unimus base URL (eg., http://localhost:8085)

Transport

Streamable HTTP

AuthenticationHTTP Bearer token

HTTP Header

Authorization: Bearer <token>

Replace <token> with the MCP token generated in the previous step.

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):

claude mcp add --transport http unimus http://localhost:8085 --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:

claude mcp add --transport http --scope user unimus http://localhost:8085 --header "Authorization: Bearer <token>"

 Note: If the AI client runs on a different machine from the Unimus server, replace localhost with the hostname or IP address through which the AI client can reach Unimus.

3. Verify the connection


After configuring the AI client, verify that it can connect to the Unimus MCP server.

In Claude Code, you can check the connection using either of the following methods:

  • Run claude mcp list in a terminal.

  • Run /mcp inside 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 validate the authentication token. If the token is invalid or missing, the connection attempt will fail with an HTTP 401 Unauthorized response.

To verify that the AI client can retrieve data from Unimus, try asking a question such as:

How many devices does Unimus manage?

Compare the response with the device count displayed in the Unimus dashboard.

Once the connection is working, the AI client can use the available MCP tools to retrieve and analyze information from Unimus, subject to the permissions configured for the MCP token.

Troubleshooting

ProblemWhat to check
HTTP 401 UnauthorizedVerify that the correct MCP token is configured in the Authorization header.
MCP server cannot be reachedVerify the Unimus URL and network connectivity between the AI client and the Unimus server.
AI client cannot retrieve expected informationCheck whether the MCP token has the necessary permissions.
MCP server is unavailableVerify whether the MCP server has been disabled using the Java startup parameter described below.

Disabling the MCP 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:

-Dunimus.core.ModelContextProtocol-disabled=true

Add the parameter to the Unimus Java startup configuration:

On Windows:

  • Portable installation: Create a file named Unimus.l4j.ini in the same directory as the Unimus executable.

  • Installer installation: Add the parameter to Unimus.l4j.ini in C:\Program Files\Unimus\.

If the Unimus.l4j.ini file already exists, add the parameter on a separate line.

On Linux:

  1. Edit /etc/default/unimus.

  2. Add the parameter on a separate line.

Restart Unimus for the change to take effect.

 

  • No labels