Server data from the Official MCP Registry
MCP server for ASAM ODS with Jaquel query tools, connection management, and data access
About
MCP server for ASAM ODS with Jaquel query tools, connection management, and data access
Security Report
This is a well-structured MCP server for ASAM ODS data access with proper authentication mechanisms and reasonable permissions scoping. The codebase demonstrates good security practices including environment variable-based credential management, keyring fallback support, and multiple auth modes (basic, M2M, OIDC). Minor code quality issues around broad exception handling and input validation exist but do not represent security vulnerabilities. Permissions align appropriately with the server's purpose as a developer tool for data access and schema inspection. Supply chain analysis found 3 known vulnerabilities in dependencies (1 critical, 1 high severity). Package verification found 1 issue.
4 files analyzed ยท 8 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-totonga-odsbox-jaquel-mcp": {
"args": [
"odsbox-jaquel-mcp"
],
"command": "uvx"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
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
Documentation
- Prompts Guide: See
PROMPTS.mdfor starting prompts documentation - Tool Reference: See
TOOLS_GUIDE.md - Changelog: See
CHANGELOG.md
Quick Start
Installation
Using uvx (Recommended)
The easiest way to use this MCP server is with uvx:
uvx odsbox-jaquel-mcp@latest
This 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-mcp
Using 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_mcp
Configuration 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 |
|---|---|---|
ODSBOX_STATS_ENABLED | not set (disabled) | Set to 1, true, or yes to enable tool and resource call monitoring. Statistics are persisted to a SQLite database (odsbox-jaquel-mcp-stats.db) for cross-session tracking. |
FASTMCP_LOG_LEVEL | INFO | Controls the server-side log level (DEBUG, INFO, WARNING, ERROR, CRITICAL). With stdio transport all logs go to stderr, which MCP clients may display as warnings. Set to WARNING to reduce noise. |
ODSBOX_MCP_MODE | basic | Authentication mode for ods_connect_using_env: basic, m2m, or oidc |
ODSBOX_MCP_URL | not set | ODS server URL for ods_connect_using_env |
ODSBOX_MCP_USER | not set | ODS username (basic mode) |
ODSBOX_MCP_PASSWORD | not set | ODS password (basic mode; falls back to keyring, checking ods-pilot first) |
ODSBOX_MCP_M2M_TOKEN_ENDPOINT | not set | OAuth2 token endpoint (m2m mode) |
ODSBOX_MCP_M2M_CLIENT_ID | not set | Client ID (m2m mode) |
ODSBOX_MCP_M2M_CLIENT_SECRET | not set | Client secret (m2m mode; falls back to keyring, checking ods-pilot first) |
ODSBOX_MCP_OIDC_CLIENT_ID | not set | Client ID (oidc mode) |
ODSBOX_MCP_OIDC_REDIRECT_URI | not set | Redirect URI (oidc mode, e.g. http://127.0.0.1:1234) |
ODSBOX_MCP_VERIFY | true | TLS certificate verification (true/false) |
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 dev
Common 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@latest
Contributing
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
$rowlimitappropriately - Select 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
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Git
Freeby Modelcontextprotocol ยท Developer Tools
Read, search, and manipulate Git repositories programmatically
Fetch
Freeby Modelcontextprotocol ยท Developer Tools
Web content fetching and conversion for efficient LLM usage
Toleno
Freeby Toleno ยท Developer Tools
Toleno Network MCP Server โ Manage your Toleno mining account with Claude AI using natural language.
mcp-creator-python
Freeby mcp-marketplace ยท Developer Tools
Create, build, and publish Python MCP servers to PyPI โ conversationally.
MCP Marketplace
Freeby mcp-marketplace ยท Developer Tools
Search and install MCP servers from inside your AI client.
MarkItDown
Freeby Microsoft ยท Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
