odsbox-jaquel-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@odsbox-jaquel-mcp query all AoMeasurement with channel 'Speed'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ASAM ODS Jaquel MCP Server
A Model Context Protocol (MCP) server for ASAM ODS with odsbox Jaquel query tools, ODS connection management, and measurement data access.
Overview
🔌 Built-in ODS connection management
🧰 MCP tools: schema inspection, query validation, direct ODS query execution and measurement data analysis
🏗️ Entity hierarchy visualization (AoTest → AoMeasurement)
🚀 Validate, explain and execute JAQueL queries for ASAM ODS
📦 Bulk timeseries/submatrix data access and script generation
📊 Automatic Jupyter notebook generation for measurement comparison
📈 Matplotlib visualization code generation
📉 Statistical measurement comparison and correlation analysis
🔎 Measurement hierarchy exploration and discovery
💡 Interactive starting prompts for guided workflows
🤖 AI-guided bulk API learning with
help_bulk_apitool📝 Comprehensive documentation and test suite
Related MCP server: Filesystem MCP Server
Documentation
Prompts Guide: See
PROMPTS.mdfor starting prompts documentationTool Reference: See
TOOLS_GUIDE.mdChangelog: See
CHANGELOG.md
Quick Start
Installation
Using uvx (Recommended)
The easiest way to use this MCP server is with uvx:
uvx odsbox-jaquel-mcp@latestThis automatically installs and runs the server without managing virtual environments.
Using uv tool (persistent install)
For a persistent installation:
uv tool install odsbox-jaquel-mcp
odsbox-jaquel-mcpUsing project virtual environment
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install odsbox-jaquel-mcp[play]Note: The
[play]extra includes optional data analysis and visualization dependencies (pandas, matplotlib, scipy) for working with Jupyter notebooks and data analysis.
Running the Server
The server runs on stdin/stdout and waits for MCP messages from an MCP client:
# With uvx (auto-installs and runs)
uvx odsbox-jaquel-mcp@latest
# With uv tool (if installed)
odsbox-jaquel-mcp
# With project environment
uv run python -m odsbox_jaquel_mcpConfiguration for MCP Clients
Add to your MCP client configuration (e.g., Claude Desktop, VS Code):
{
"mcpServers": {
"ods-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["odsbox-jaquel-mcp@latest"]
}
}
}Or with uv tool:
{
"mcpServers": {
"ods-mcp": {
"type": "stdio",
"command": "odsbox-jaquel-mcp"
}
}
}Environment Variables
Variable | Default | Description |
| not set (disabled) | Set to |
|
| Controls the server-side log level ( |
|
| Authentication mode for |
| not set | ODS server URL for |
| not set | ODS username (basic mode) |
| not set | ODS password (basic mode; falls back to keyring, checking |
| not set | OAuth2 token endpoint (m2m mode) |
| not set | Client ID (m2m mode) |
| not set | Client secret (m2m mode; falls back to keyring, checking |
| not set | Client ID (oidc mode) |
| not set | Redirect URI (oidc mode, e.g. |
|
| TLS certificate verification ( |
See TOOLS_GUIDE.md for the full list of authentication variables and keyring fallback details.
Secrets are looked up in the ods-pilot keyring service first using <service>::<username> records, then in the legacy direct service lookup if no entry is found.
Usage Monitoring
When ODSBOX_STATS_ENABLED=true is set, the server records tool call and resource read statistics to a local SQLite database:
Location:
~/.local/share/odsbox-jaquel-mcp/odsbox-jaquel-mcp-stats.db(Linux/macOS) or%APPDATA%\odsbox-jaquel-mcp\odsbox-jaquel-mcp-stats.db(Windows), with fallback to the system temp directory.Tracked per tool: call count, error count, total execution time (ms), last called timestamp.
Tracked per resource: read count, error count, total execution time (ms), last read timestamp.
Cross-process safe: uses SQLite WAL mode, so multiple concurrent MCP sessions can write safely.
You can query the stats database directly:
sqlite3 ~/.local/share/odsbox-jaquel-mcp/odsbox-jaquel-mcp-stats.db \
"SELECT name, calls, errors, total_ms FROM tool_stats ORDER BY calls DESC"Example MCP client configuration with monitoring enabled:
{
"mcpServers": {
"ods-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["odsbox-jaquel-mcp@latest"],
"env": {
"ODSBOX_STATS_ENABLED": "true",
"FASTMCP_LOG_LEVEL": "WARNING"
}
}
}
}Development
Setup
git clone https://github.com/totonga/odsbox-jaquel-mcp.git
cd odsbox-jaquel-mcp
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv sync --all-extras --group devCommon Tasks
# Run server locally
uv run python -m odsbox_jaquel_mcp
# Run tests
uv run pytest tests/
# or
python run_tests.py
# Code formatting and linting
ruff check .
ruff format .
# Build package
uv build
# Test with MCP Inspector
npx @modelcontextprotocol/inspector uvx odsbox-jaquel-mcp@latestContributing
Pull requests and issues are welcome! Please:
Follow PEP8 and use type hints
Add/maintain tests for new features
Update documentation as needed
License
This project is licensed under the Apache License 2.0. See LICENSE.
Links
Features
Core MCP Tools
Connection Management
ods_connect - Establish ODS connection
ods_connect_using_env - Establish ODS connection using environment variables
ods_disconnect - Close ODS connection
ods_get_connection_info - Get connection status
Schema Inspection
schema_get_entity - Get all fields for entity
schema_list_entities - List all entities with relationships
schema_test_to_measurement_hierarchy - Get ASAM ODS test hierarchy structure
Query Building & Validation
query_validate - Check query syntax and structure
query_describe - Get plain English explanation
query_execute - Execute query on ODS server
Timeseries/Submatrix Data Access
data_get_quantities - List measurement quantities for submatrix
data_read_submatrix - Read timeseries data from submatrix
data_generate_fetcher_script - Generate Python scripts for data fetching
Pattern & Example Library
query_generate_skeleton - Generate query skeleton (basic query) for entity
query_get_pattern - Get template for common patterns
query_list_patterns - List available patterns
query_get_operator_docs - Learn about operators
Starting Prompts
Discover and use the server's capabilities through interactive guided prompts:
ODS Server Connection - Set up and manage connections
Validate a Jaquel Query - Learn query validation
Explore Query Patterns - Find common query templates
Bulk Data Access - Master the 3-step Bulk API workflow
Measurement Analysis - Compare measurements and visualize data
See PROMPTS.md for complete details on all starting prompts.
Error Handling
Common Errors and Solutions
Not connected
{
"error": "Model not loaded",
"hint": "Connect to ODS server using 'ods_connect' tool first"
}Solution: Call ods_connect first
Invalid entity
{
"error": "Entity not found: InvalidEntity",
"available_entities": ["AoUnit", "AoMeasurement", ...]
}Solution: Use valid entity from available_entities
Invalid field
{
"valid": false,
"issues": ["Field 'invalid_field' not found"],
"suggestions": ["id", "name", "description"]
}Solution: Use one of the suggested fields
Connection failed
{
"success": false,
"error": "Connection refused",
"error_type": "ConnectionError"
}Solution: Check URL, server availability, firewall
Troubleshooting
Issue: Tools not discovered
Ensure mcp>=0.1.0 is installed
Check ToolsCapability is set in ServerCapabilities
Restart MCP client
Issue: Schema tools fail
Ensure ODS server is accessible
Check username/password
Verify network connectivity
Review server logs
Issue: Queries timeout
Increase request_timeout in connect
Reduce $rowlimit
Check ODS server performance
Performance Tips
Use specific filters - Avoid querying all records
Limit rows - Always use
$rowlimitappropriatelySelect attributes - Only retrieve needed columns/attributes
Index awareness - Filter on indexed fields first
Connection reuse - Keep connection open when possible
Cache schemas - Schema inspection is cached
Security Notes
Credentials are only held in memory during connection
Connection is cleaned up on disconnect
No credentials stored in config files
Use HTTPS with
verify_certificate: truefor production
Install in VSCode
{width=300px}
Try with example server configuration using all three authentication modes via different env prefixes:
{
"servers": {
"ods": {
"type": "stdio",
"command": "uvx",
"args": [
"odsbox-jaquel-mcp@latest"
],
"env": {
"ODSBOX_MCP_URL": "https://docker.peak-solution.de:10032/api",
"ODSBOX_MCP_USER": "Demo",
"ODSBOX_MCP_PASSWORD": "mdm",
"ODSBOX_MCP2_MODE": "m2m",
"ODSBOX_MCP2_URL": "https://ods.example.com/api",
"ODSBOX_MCP2_M2M_TOKEN_ENDPOINT": "https://auth.example.com/realms/myrealm/protocol/openid-connect/token",
"ODSBOX_MCP2_M2M_CLIENT_ID": "my-service-client",
"ODSBOX_MCP3_MODE": "oidc",
"ODSBOX_MCP3_URL": "https://ods.example.com/api",
"ODSBOX_MCP3_OIDC_CLIENT_ID": "my-oidc-client",
"ODSBOX_MCP3_OIDC_REDIRECT_URI": "http://127.0.0.1:1234"
}
}
},
"inputs": []
}Support
For issues or questions:
Check the error message and hints
Review the documentation
Available Tools
22 toolsdata_generate_fetcher_scriptBRead-only
Generate Python scripts for fetching submatrix data with error handling and data processing.
Inputs: script_type (required), submatrix_id (required), output_format, include_analysis, +2 more. Returns: object
data_get_quantitiesBRead-only
Get available measurement quantities for a submatrix.
Inputs: submatrix_id (required). Returns: object
data_read_submatrixARead-only
Read timeseries data from a submatrix using bulk data access.
Inputs: submatrix_id (required), case_insensitive, max_preview_size, date_as_timestamp, +3 more. Returns: object
help_bulk_apiARead-only
Get help and guidance on using the Bulk API for loading timeseries data.
Use this to understand the 3-step workflow and common patterns.
Inputs: topic (required), tool. Returns: object
ods_connectB
Establish connection to ASAM ODS server for live model inspection.
Inputs: url (required), password (required), username (required), verify. Returns: Result returned after connecting to an ODS server.
ods_connect_env_listARead-only
List all ODS servers configured via environment variables.
Returns each server's prefix and URL so you can identify the right server
and connect with ods_connect_using_env(env_prefix='PREFIX').
Inputs: no named parameters. Returns: object
ods_connect_using_envA
Establish connection to ASAM ODS server using environment variables.
Default prefix is ODSBOX_MCP; set ODSBOX_MCP_ENV_PREFIX or pass env_prefix. Falls back to legacy ODS_ prefix variables.
Supports three authentication modes via {prefix}MODE or ODSBOX_MCP{prefix}_MODE:
basic (default): Username/password. Vars: URL, USERNAME, PASSWORD, VERIFY.
m2m: OAuth2 client credentials. Vars: URL, M2M_TOKEN_ENDPOINT, M2M_CLIENT_ID, M2M_CLIENT_SECRET, M2M_SCOPE (optional, comma-separated), VERIFY.
oidc: OpenID Connect browser login. Vars: URL, OIDC_CLIENT_ID, OIDC_REDIRECT_URI, OIDC_CLIENT_SECRET (optional), OIDC_WEBFINGER_PATH_PREFIX, OIDC_AUTHORIZATION_ENDPOINT, OIDC_TOKEN_ENDPOINT, OIDC_LOGIN_TIMEOUT, OIDC_REDIRECT_INSECURE, OIDC_SCOPE, VERIFY.
Secrets (passwords, client_secrets) fall back to keyring when not in env.
Inputs: env_prefix. Returns: Result returned after connecting to an ODS server.
ods_disconnectAIdempotent
Close connection to ODS server.
Inputs: no named parameters. Returns: object
ods_get_connection_infoARead-only
Get current ODS connection information.
Inputs: no named parameters. Returns: result
plot_comparison_notebookA
Generate a Jupyter notebook for comparing measurements.
Uses the active ODS connection (established via ods_connect or ods_connect_using_env). The generated notebook reads the password from the ODS_PASSWORD environment variable at runtime so no credentials are embedded in the notebook file.
Inputs: measurement_quantity_names (required), measurement_query_conditions (required), title, plot_type, +2 more. Returns: object
plot_generate_codeARead-only
Generate Python plotting code for measurement comparison.
Inputs: plot_type (required), submatrices_count (required), measurement_quantity_names (required). Returns: object
query_describeBRead-only
Describe what a Jaquel query does.
Inputs: query (required). Returns: result
query_executeBRead-only
Execute a Jaquel query directly on connected ODS server.
Inputs: query (required), max_rows, max_cells, result_format. Returns: object
query_generate_skeletonBRead-only
Generate a query skeleton for a specific entity and operation.
Inputs: entity_name (required), operation. Returns: object
query_get_operator_docsARead-only
Get documentation and examples for a Jaquel operator.
Inputs: operator (required). Returns: object
query_get_patternBRead-only
Get a template for a common Jaquel query pattern.
Inputs: pattern (required). Returns: object
query_list_patternsARead-only
List all available Jaquel query patterns and templates.
Inputs: no named parameters. Returns: object
query_validateARead-only
Validate a Jaquel query structure for syntax errors and best practices.
Inputs: query (required). Returns: object
schema_field_existsBRead-only
Check if a field exists in entity schema.
Inputs: field_name (required), entity_name (required). Returns: object
schema_get_entityARead-only
Get available fields for an entity from ODS model.
Inputs: entity_name (required). Returns: Complete schema for an ODS entity.
schema_list_entitiesARead-only
Return a list of existing entities from the ODS server ModelCache.
Inputs: no named parameters. Returns: object
schema_test_to_measurement_hierarchyARead-only
Get hierarchical entity chain from AoTest to AoMeasurement via 'children' relation.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Tools are largely distinct with clear domain prefixes (ods_, schema_, query_, data_, plot_), but there is minor overlap between plotting tools (plot_comparison_notebook vs plot_generate_code) and query pattern functions (query_get_pattern vs query_list_patterns), which could cause slight confusion.
All tools follow a consistent snake_case naming convention with domain-based prefixes (e.g., ods_connect, schema_list_entities, query_validate, data_read_submatrix). This makes the set predictable and easy to navigate.
At 22 tools, the set is above the typical 3-15 range but remains reasonable given the broad scope covering connection management, schema inspection, query building, data retrieval, and plotting. Each tool serves a distinct purpose, so it does not feel bloated.
The tool set comprehensively covers the advertised workflow: connection setup and teardown, schema exploration, query validation and generation, data access, and plotting. No obvious gaps exist for the stated purpose of working with ODS/ASAM data.
Maintenance
Related MCP Connectors
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
An MCP server giving access to Grafana dashboards, data and more.
Ovanek MCP: Model Context Protocol server for Ovanek platform tools; writes are dry-run by default.
MCP server for the Seline Analytics API
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables SQL query execution, database management, and business intelligence capabilities through MySQL connections.1,462 npmMIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides file system operations, analysis, and manipulation capabilities through a standardized tool interface.6MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables executing SQL queries and managing connections with Microsoft SQL Server databases.12,112 npm6MIT
- FlicenseCqualityDmaintenanceA Model Context Protocol server that provides a standardized interface for interacting with SQL databases through the MCP protocol.323 npm4-