MCP server for searching and retrieving OTOBO tickets
Project description
OTOBO MCP Server
An MCP server for searching and retrieving tickets from OTOBO via the Generic Interface REST API.
Prerequisites
- Python 3.10+
- An OTOBO instance with the Generic Interface enabled
- uv package manager
OTOBO web service setup
In Admin > Web Services, create or edit a web service with these operations:
| Operation | Route | Method |
|---|---|---|
| Ticket::TicketSearch | /TicketSearch | POST |
| Ticket::TicketGet | /TicketGet | POST |
POST is required for both — GET cannot handle the nested search parameters.
Quickstart
git clone https://github.com/youruser/otobo-mcp-server.git
cd otobo-mcp-server
# Create environment and install dependencies
uv venv
source .venv/bin/activate
uv sync
Run the server:
# STDIO (default)
uv run otobo_mcp_server.py
# SSE
uv run otobo_mcp_server.py -t sse -p 8080
# Streamable HTTP
uv run otobo_mcp_server.py -t streamable-http -p 8080
Configuration
All configuration is through environment variables:
| Variable | Required | Default | Description |
|---|---|---|---|
OTOBO_HOST |
yes | Base URL, e.g. https://otobo.example.com |
|
OTOBO_USER |
yes | Agent username | |
OTOBO_PASSWORD |
yes | Agent password | |
OTOBO_WEBSERVICE |
no | GenericTicketConnectorREST |
Web service name in OTOBO admin |
OTOBO_SSL_VERIFY |
no | true |
SSL certificate verification |
OTOBO_TIMEOUT |
no | 30 |
HTTP timeout in seconds |
OTOBO_TRANSPORT |
no | stdio |
Transport: stdio, sse, streamable-http |
For SSE/HTTP transports, bind address is set via FASTMCP_HOST (default 127.0.0.1) and FASTMCP_PORT (default 8000), or use --host / --port flags.
Usage
"otobo": {
"command": "uv",
"args": [
"--directory", "/absolute/path/to/otobo-mcp-server",
"run", "otobo_mcp_server.py"
],
"env": {
"OTOBO_HOST": "https://otobo.example.com",
"OTOBO_USER": "api_agent",
"OTOBO_PASSWORD": "secret"
}
}
Usage with Claude Code
claude mcp add otobo \
-e OTOBO_HOST=https://otobo.example.com \
-e OTOBO_USER=api_agent \
-e OTOBO_PASSWORD=secret \
-- uv --directory /absolute/path/to/otobo-mcp-server run otobo_mcp_server.py
Remote (SSE / Streamable HTTP)
uv run otobo_mcp_server.py -t sse --host 0.0.0.0 -p 8080
SSE endpoint: http://your-host:8080/sse
Streamable HTTP endpoint: http://your-host:8080/mcp
Tools
search_tickets — search with filters: title keywords, date range, state, priority, customer, queue. Returns JSON with ticket details and all articles/comments.
get_ticket_details — fetch a single ticket by ID with dynamic fields and articles.
get_ticket_articles — fetch only the article/comment history for a ticket.
check_connection — verify OTOBO connectivity and authentication.
Testing
# With MCP Inspector
npx @modelcontextprotocol/inspector uv run otobo_mcp_server.py
License
MIT
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 otobo_mcp_server-1.0.2.tar.gz.
File metadata
- Download URL: otobo_mcp_server-1.0.2.tar.gz
- Upload date:
- Size: 57.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28cce0e0b3f228f7132af1aa6bacd6f803f42bbe3979233c7e21946e13fecb22
|
|
| MD5 |
39bb5f163288046ad4a9073c94c03b86
|
|
| BLAKE2b-256 |
655f84b26fcb71190771b50a2afbda00b584bca8a9402a47b3dcbe75dddf9149
|
Provenance
The following attestation bundles were made for otobo_mcp_server-1.0.2.tar.gz:
Publisher:
build_and_publish_pypi.yaml on siscale/otobo-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
otobo_mcp_server-1.0.2.tar.gz -
Subject digest:
28cce0e0b3f228f7132af1aa6bacd6f803f42bbe3979233c7e21946e13fecb22 - Sigstore transparency entry: 991495687
- Sigstore integration time:
-
Permalink:
siscale/otobo-mcp-server@f82b6e263ffa282971571a46c303b581f11cfc9f -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/siscale
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish_pypi.yaml@f82b6e263ffa282971571a46c303b581f11cfc9f -
Trigger Event:
push
-
Statement type:
File details
Details for the file otobo_mcp_server-1.0.2-py3-none-any.whl.
File metadata
- Download URL: otobo_mcp_server-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e58ef75582456bd252385b89cb52abaa394119e295ba0dff94d2422947e0c84f
|
|
| MD5 |
2e2eafa07e919f9208faa42e3446f953
|
|
| BLAKE2b-256 |
84421e540ed13dc68045a587cc785860160057119c768b4791b1f717ac16745e
|
Provenance
The following attestation bundles were made for otobo_mcp_server-1.0.2-py3-none-any.whl:
Publisher:
build_and_publish_pypi.yaml on siscale/otobo-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
otobo_mcp_server-1.0.2-py3-none-any.whl -
Subject digest:
e58ef75582456bd252385b89cb52abaa394119e295ba0dff94d2422947e0c84f - Sigstore transparency entry: 991495691
- Sigstore integration time:
-
Permalink:
siscale/otobo-mcp-server@f82b6e263ffa282971571a46c303b581f11cfc9f -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/siscale
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish_pypi.yaml@f82b6e263ffa282971571a46c303b581f11cfc9f -
Trigger Event:
push
-
Statement type: