Model Context Protocol server for iTop ITSM integration
Project description
iTop MCP Server
A Model Context Protocol (MCP) server for integrating with iTop ITSM (IT Service Management) systems. This server provides AI assistants with the ability to interact with iTop through its REST API, enabling operations like ticket management, CI (Configuration Item) management, and more.
Features
The iTop MCP server provides the following tools:
- list_operations: List all available iTop REST API operations
- get_objects: Search and retrieve iTop objects (tickets, users, CIs, etc.)
- create_object: Create new objects in iTop
- update_object: Update existing objects
- delete_object: Delete objects (with simulation mode for safety)
- apply_stimulus: Apply state transitions to objects (e.g., resolve tickets)
- get_related_objects: Find related objects through impact/dependency relationships
- check_credentials: Verify iTop API credentials
Installation
Option 1: Install from PyPI (Recommended)
# Install the package
pip install itop-mcp
# Or using uv
uv add itop-mcp
Option 2: Install from Source
-
Prerequisites:
- Python 3.10 or higher
- Access to an iTop instance with REST API enabled
- iTop user account with "REST Services User" profile
-
Install dependencies:
# Install uv if you haven't already curl -LsSf https://astral.sh/uv/install.sh | sh # Clone and install git clone https://github.com/roneydsilva/itop-mcp.git cd itop-mcp uv sync
-
Configure iTop connection:
# Copy the example configuration cp .env.example .env # Edit the .env file with your iTop details nano .env
Required environment variables:
ITOP_BASE_URL: Your iTop instance URL (e.g., https://itop.yourcompany.com)ITOP_USER: Username with REST Services User profileITOP_PASSWORD: Password for the userITOP_VERSION: API version (optional, default: 1.4)
Usage
Running the Server
# Activate the virtual environment
source .venv/bin/activate
# Run the server
uv run main.py
Connecting to Claude Desktop
Option 1: Using PyPI Installation
To use this server with Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"itop": {
"command": "itop-mcp",
"env": {
"ITOP_BASE_URL": "https://your-itop-instance.com",
"ITOP_USER": "your_username",
"ITOP_PASSWORD": "your_password"
}
}
}
}
Option 2: Using Source Installation
{
"mcpServers": {
"itop": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/itop-mcp",
"run",
"main.py"
],
"env": {
"ITOP_BASE_URL": "https://your-itop-instance.com",
"ITOP_USER": "your_username",
"ITOP_PASSWORD": "your_password"
}
}
}
}
Example Operations
Once connected, you can ask your AI assistant to perform operations like:
- "List all open user requests in iTop"
- "Create a new incident ticket for server downtime"
- "Find all CIs related to the mail server"
- "Update the priority of ticket #123 to high"
- "Resolve ticket #456 with resolution details"
iTop Class Examples
Common iTop classes you can work with:
- UserRequest: User requests/tickets
- Incident: Incident tickets
- Person: Users and contacts
- Organization: Organizations/companies
- Server: Server configuration items
- Application: Application configuration items
- Service: IT services
- Contract: Contracts and SLAs
Security Notes
- Always use HTTPS for your iTop instance in production
- Store credentials securely (use environment variables, not hardcoded values)
- The user account should have minimal necessary permissions
- Test operations in a development environment first
- Use simulation mode for delete operations until you're confident
Troubleshooting
Common Issues
- Authentication errors: Ensure your user has the "REST Services User" profile in iTop
- Connection errors: Verify the ITOP_BASE_URL is correct and accessible
- Permission errors: Check that the user has appropriate rights on the objects you're trying to access
Testing the Connection
Use the check_credentials tool to verify your configuration:
# The server will automatically test credentials on startup
# You can also ask the AI assistant: "Check my iTop credentials"
Development
To extend the server:
- Add new tools by creating functions decorated with
@mcp.tool() - Follow the iTop REST API documentation for available operations
- Handle errors gracefully and provide informative messages
- Test thoroughly in a development environment
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
License
This project is open source. See the LICENSE file for details.
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file itop_mcp-1.0.0.tar.gz.
File metadata
- Download URL: itop_mcp-1.0.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ffcbe37f59d2fd15a40fa19edd9a909e054bcdcc73b2dd5307421ff139ad621
|
|
| MD5 |
adc087e31d5505b2e2d98a9db6c5367f
|
|
| BLAKE2b-256 |
6f0c7639d58a83df8902c7186acf654e9a64f5d2ae4b6f9883bb64bb1c549ef7
|
File details
Details for the file itop_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: itop_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a15572b728dc150e09f86d1f6d14c87e4d997a95196dc0118bb63843df6eacc
|
|
| MD5 |
7ed506b74339057b04cd9f17e1001a9a
|
|
| BLAKE2b-256 |
d3432835a2ea135c64453b849a517bfb2eab007904e13ffdc739612c268ef413
|