mcp-otobo
A Model Context Protocol (MCP) server, built with FastMCP, for Otobo — the open-source ITSM and helpdesk system. This server enables AI assistants to search, create, update, and manage tickets in your Otobo instance through the Generic Interface REST API.
Features
- Search tickets by queue, state, priority, customer, title, date ranges, and more
- Get ticket details including full communication history and dynamic fields
- Create tickets with initial articles
- Update tickets — change state, queue, priority, owner, add articles
- Close tickets with optional closing notes
- Add internal notes to tickets
- View ticket history — full audit trail of changes
- List queues, states, and priorities from your Otobo instance
Prerequisites
- uv: it provides
uvxand installs a suitable Python (3.10+) automatically - An Otobo instance with a configured Generic Interface web service (see Otobo Setup)
- An agent account with API access permissions
How it runs
The server uses the stdio transport only. Your MCP client starts it as a local subprocess and talks to it over stdin/stdout. You don't need to run a server or open a port. You only add an entry to the client's configuration.
The recommended command is uvx mcp-otobo, which downloads the package from PyPI and runs it in an isolated environment. To run from a local clone instead, see Running from source.
Configuration
The server reads its configuration only from environment variables. It does not load a .env file. Put the variables in the env block of your MCP client's configuration, as the examples below show.
| Variable | Required | Default | Description |
|---|---|---|---|
OTOBO_BASE_URL |
Yes | — | Your Otobo instance URL (e.g. https://otobo.example.com) |
OTOBO_USERNAME |
Yes | — | Agent username for API access |
OTOBO_PASSWORD |
Yes | — | Agent password |
OTOBO_WEBSERVICE |
No | GenericTicketConnectorREST |
Web service name configured in Otobo |
OTOBO_UNSAFE_SSL |
No | false |
Set to true to allow self-signed/internal SSL certificates |
.env.example lists every variable and is there for reference only.
Available Tools
Core Ticket Operations
| Tool | Description |
|---|---|
search_tickets |
Search tickets by queue, state, priority, customer, title, ticket number, date ranges |
get_ticket |
Get full ticket details with articles and dynamic fields |
create_ticket |
Create a new ticket with first article |
update_ticket |
Update ticket fields and optionally add an article |
History
| Tool | Description |
|---|---|
get_ticket_history |
Get the full change history of a ticket |
Metadata
| Tool | Description |
|---|---|
list_queues |
List available queues in the system |
list_states |
List available ticket states |
list_priorities |
List available ticket priorities |
Convenience
| Tool | Description |
|---|---|
close_ticket |
Close a ticket with an optional note |
add_note |
Add an internal note to a ticket |
Client Setup (stdio)
Every client below starts the same command, uvx mcp-otobo, with the variables above. Restart or reload the client after you change its configuration.
Tip: some GUI apps (Claude Desktop, Cursor) don't inherit your shell
PATH. If you seespawn uvx ENOENT, use the absolute path fromwhich uvx(e.g./Users/you/.local/bin/uvx) as thecommand.
Claude Desktop
Edit claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"otobo": {
"command": "uvx",
"args": ["mcp-otobo"],
"env": {
"OTOBO_BASE_URL": "https://otobo.example.com",
"OTOBO_USERNAME": "your-agent-user",
"OTOBO_PASSWORD": "your-agent-password",
"OTOBO_WEBSERVICE": "GenericTicketConnectorREST"
}
}
}
}
Claude Code
Using the CLI (stdio is the default transport):
claude mcp add otobo \
-e OTOBO_BASE_URL=https://otobo.example.com \
-e OTOBO_USERNAME=your-agent-user \
-e 'OTOBO_PASSWORD=your-agent-password' \
-e OTOBO_WEBSERVICE=GenericTicketConnectorREST \
-- uvx mcp-otobo
Add --scope project to save it to the project's .mcp.json and share it with your team, or --scope user to make it available in every project. You can also edit .mcp.json directly:
{
"mcpServers": {
"otobo": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-otobo"],
"env": {
"OTOBO_BASE_URL": "https://otobo.example.com",
"OTOBO_USERNAME": "${OTOBO_USERNAME}",
"OTOBO_PASSWORD": "${OTOBO_PASSWORD}"
}
}
}
}
${VAR} is expanded from your shell environment, which keeps credentials out of the committed file.
Cursor
Edit .cursor/mcp.json in the project, or ~/.cursor/mcp.json to use it in every project:
{
"mcpServers": {
"otobo": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-otobo"],
"env": {
"OTOBO_BASE_URL": "https://otobo.example.com",
"OTOBO_USERNAME": "your-agent-user",
"OTOBO_PASSWORD": "your-agent-password",
"OTOBO_WEBSERVICE": "GenericTicketConnectorREST"
}
}
}
}
VS Code (GitHub Copilot)
Edit .vscode/mcp.json in the workspace. VS Code uses servers instead of mcpServers, and inputs lets it prompt for the password instead of storing it:
{
"inputs": [
{
"type": "promptString",
"id": "otobo-password",
"description": "Otobo agent password",
"password": true
}
],
"servers": {
"otobo": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-otobo"],
"env": {
"OTOBO_BASE_URL": "https://otobo.example.com",
"OTOBO_USERNAME": "your-agent-user",
"OTOBO_PASSWORD": "${input:otobo-password}",
"OTOBO_WEBSERVICE": "GenericTicketConnectorREST"
}
}
}
}
Windsurf
Edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"otobo": {
"command": "uvx",
"args": ["mcp-otobo"],
"env": {
"OTOBO_BASE_URL": "https://otobo.example.com",
"OTOBO_USERNAME": "your-agent-user",
"OTOBO_PASSWORD": "your-agent-password",
"OTOBO_WEBSERVICE": "GenericTicketConnectorREST"
}
}
}
}
Codex CLI
Codex uses TOML in ~/.codex/config.toml:
[mcp_servers.otobo]
command = "uvx"
args = ["mcp-otobo"]
[mcp_servers.otobo.env]
OTOBO_BASE_URL = "https://otobo.example.com"
OTOBO_USERNAME = "your-agent-user"
OTOBO_PASSWORD = "your-agent-password"
OTOBO_WEBSERVICE = "GenericTicketConnectorREST"
Gemini CLI
Edit ~/.gemini/settings.json, or .gemini/settings.json in the project:
{
"mcpServers": {
"otobo": {
"command": "uvx",
"args": ["mcp-otobo"],
"env": {
"OTOBO_BASE_URL": "https://otobo.example.com",
"OTOBO_USERNAME": "your-agent-user",
"OTOBO_PASSWORD": "your-agent-password",
"OTOBO_WEBSERVICE": "GenericTicketConnectorREST"
}
}
}
}
Pinning a version
uvx mcp-otobo resolves the latest release. To pin one, use "args": ["mcp-otobo==1.0.0"] in any of the examples above (or uvx mcp-otobo==1.0.0 on the command line).
Running from source
To use a local clone, during development or before a release is on PyPI:
git clone <repository-url> mcp-otobo
cd mcp-otobo
uv sync
In any client configuration above, replace the command with:
"command": "uv",
"args": ["--directory", "/absolute/path/to/mcp-otobo", "run", "mcp-otobo"]
To test locally without an MCP client, copy .env.example to .env, fill it in, and let uv load it (the server itself never reads .env):
cp .env.example .env
uv run --env-file .env mcp-otobo # stdio server
uv run --env-file .env fastmcp dev inspector src/mcp_otobo/server.py:mcp # MCP Inspector UI
Programmatic Use (Python / FastMCP)
import asyncio
from fastmcp import Client
from fastmcp.client.transports import StdioTransport
transport = StdioTransport(
command="uvx",
args=["mcp-otobo"],
env={
"OTOBO_BASE_URL": "https://otobo.example.com",
"OTOBO_USERNAME": "your-agent-user",
"OTOBO_PASSWORD": "your-agent-password",
"OTOBO_WEBSERVICE": "GenericTicketConnectorREST",
},
)
async def main():
async with Client(transport) as client:
tools = await client.list_tools()
print([t.name for t in tools])
result = await client.call_tool("search_tickets", {"states": ["open", "new"], "limit": 10})
print(result.data)
asyncio.run(main())
Project Structure
src/mcp_otobo/
├── server.py # FastMCP server and tool definitions
├── client.py # Async Otobo Generic Interface REST client (httpx)
└── __main__.py # `python -m mcp_otobo`
Otobo Setup
To use this MCP server, your Otobo instance needs a properly configured Generic Interface web service.
Step 1: Create a Web Service
- Log in to Otobo as an admin
- Navigate to Admin → Generic Interface → Web Services
- Click Add Web Service
- Set:
- Name:
GenericTicketConnectorREST(or your preferred name — must matchOTOBO_WEBSERVICE) - Network Transport:
HTTP::REST
- Name:
Step 2: Add Operations
Add the following four operations to your web service. For each one:
- Click Add Operation
- Set the Name (e.g.
TicketCreate) - Select the Operation-Backend:
| Name | Operation-Backend |
|---|---|
TicketCreate |
Ticket::TicketCreate |
TicketGet |
Ticket::TicketGet |
TicketSearch |
Ticket::TicketSearch |
TicketUpdate |
Ticket::TicketUpdate |
- Leave mapping settings at their defaults
- Click Save
Step 3: Configure Transport & Route Mapping
- Back on the web service overview, go to Network Transport → Configure
- Set Maximum message length:
10000000(or higher for large tickets) - Configure the Route mapping for each operation:
| Operation | Route | Request Method |
|---|---|---|
TicketCreate |
/TicketCreate |
POST |
TicketGet |
/TicketGet |
POST |
TicketSearch |
/TicketSearch |
POST |
TicketUpdate |
/TicketUpdate |
POST |
- Save
Step 4: Create an API Agent
Security note: Once a REST web service is active, any valid agent account can authenticate against it. There is no way to restrict the web service itself to specific users. Access control is handled entirely through group and queue permissions. It is strongly recommended to create a dedicated API agent with minimal permissions.
- Navigate to Admin → Agents
- Create a dedicated agent account for API access (e.g.
api-user) - Create a dedicated group (e.g.
api-access) under Admin → Groups - Under Admin → Agents ↔ Groups, assign only the API agent to this group
- Under Admin → Queues ↔ Groups, grant access only to the queues the API should reach
- Use this agent's credentials for
OTOBO_USERNAMEandOTOBO_PASSWORD
Step 5: Verify
Test your setup with curl:
curl -X POST \
"https://otobo.example.com/otobo/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/TicketSearch" \
-H "Content-Type: application/json" \
-d '{"UserLogin":"your-agent","Password":"your-password"}'
You should get a JSON response with ticket IDs.
Troubleshooting
"Missing required environment variable"
Make sure all required environment variables are set. Check that your MCP client configuration passes the env block correctly.
"Otobo API error (HTTP 403)"
Your agent account may lack the necessary permissions. Check:
- The agent exists and is valid in Otobo
- The agent has group permissions for the queues you're trying to access
- The web service is active (not deactivated)
"Otobo API error (HTTP 404)"
The web service endpoint is not found. Verify:
- The web service name matches
OTOBO_WEBSERVICE - The operations are configured with correct route mappings
- The Otobo URL is correct and accessible
"Otobo API error (HTTP 500)"
An internal server error in Otobo. Check:
- Otobo system logs (
/opt/otobo/var/log/or your log directory) - The request payload is valid (required fields like Queue, State, Priority)
- Customer user exists in the system when creating tickets
Connection Issues
- Ensure your Otobo instance is reachable from the machine running the MCP server
- Check for firewalls, VPN requirements, or SSL certificate issues
- For self-signed or internal SSL certificates, set
OTOBO_UNSAFE_SSL=truein your environment configuration
"No tickets found" for list_queues/list_states/list_priorities
These metadata tools discover values from existing tickets. If your system has no tickets yet, they return default values. Create a test ticket first, or use the known defaults:
- Queues:
Raw,Junk,Misc,Postmaster(depends on your setup) - States:
new,open,pending reminder,closed successful,closed unsuccessful - Priorities:
1 very low,2 low,3 normal,4 high,5 very high
License
MIT
Metadata
Release files for mcp-otobo 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_otobo-1.0.0.tar.gz | 140.1 kB | Without provenance | Details for mcp_otobo-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_otobo-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_otobo-1.0.0-py3-none-any.whl |
Total release size: 153.1 kB
Release files / mcp_otobo-1.0.0.tar.gz
| Download URL | mcp_otobo-1.0.0.tar.gz |
|---|---|
| Size | 140.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
951be4410cba4b68242c3f0934f936d8566db6fcfb37dcb75e60f63126e5cc89
|
|
BLAKE2b-256 checksum How to use checksums |
95b03e1b73bab0bfad1ab574632f17fc3374fd3d3bf471e97c01bab174c2d429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / mcp_otobo-1.0.0-py3-none-any.whl
| Download URL | mcp_otobo-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dae87838c377b7272dc163a16e7657f5ff2bc5c60f90e369d5e59ea5682a5be
|
|
BLAKE2b-256 checksum How to use checksums |
244ea963082dd954daccad4ca2d15233177ff8fd0b45a68faa1606461f59f0a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for mcp-otobo 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.