ETIM MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ETIM MCP Server
A production-ready Model Context Protocol (MCP) server that provides LLMs with direct access to the ETIM Classification API. This server enables AI assistants like Claude to query product classifications, technical features, and standardized product information from the international ETIM database.
Overview
ETIM Technical Information Model is the international standard for classifying technical products, with a focus on electrical and electronic products. This MCP server wraps the ETIM API v2.0 and exposes it through the Model Context Protocol, making standardized product data accessible to any MCP-compatible AI assistant.
Perfect for:
π’ E-commerce platforms needing standardized product data
π Electrical product manufacturers and distributors
π Data integration and migration projects
π€ AI-powered product recommendation systems
π Technical product search and comparison tools
Related MCP server: etim-json
Features
22 MCP Tools for comprehensive ETIM API access:
Search product classes, features, groups, feature groups, values, and units
Get detailed information about all ETIM entities
Compare multiple product classes side-by-side
Track classification changes between versions
Health checks for server components
Get supported languages and ETIM releases
2 MCP Resources for quick reference:
Supported languages list
ETIM release versions
3 MCP Prompts for common workflows:
Compare two product classes
Find products matching specifications
Explain a classification in detail
Smart Caching with Redis:
1 hour cache for search results
24 hour cache for class details
7 day cache for static data (languages, releases)
Automatic OAuth Token Management:
Token caching with 5-minute expiry buffer
Automatic refresh on 401 errors
Transparent token handling
Multi-Transport Support:
stdio- Local Claude Desktop/Code integration (default)sse- Server-Sent Events for remote access (e.g., Windows β WSL)streamable-http- Newer MCP protocol variant
Production-Ready Architecture:
Docker Compose setup with health checks
Structured logging with Loguru
Comprehensive error handling
Async/await throughout for performance
Prerequisites
Docker and Docker Compose installed
ETIM API credentials (client_id and client_secret)
Internet connection for ETIM API access
Quick Start
Installation
Clone the repository:
git clone https://github.com/ziouzitsou/etim-mcp-server.git cd etim-mcp-serverCreate a
.envfile from the example template:cp .env.example .envEdit
.envand add your ETIM API credentials:ETIM_CLIENT_ID=your_client_id_here ETIM_CLIENT_SECRET=your_client_secret_hereBuild and start the services:
docker-compose up --build
The server will:
Start Redis on port 6379
Start the MCP server (accessible via stdio)
Start Redis Commander on http://localhost:8081 (for cache monitoring)
Configuration
All configuration is managed through environment variables in the .env file:
Required Settings
Variable | Description | Default |
| Your ETIM API client ID | (required) |
| Your ETIM API client secret | (required) |
Optional Settings
Variable | Description | Default |
| ETIM OAuth authentication URL |
|
| ETIM API base URL |
|
| Default language for queries |
|
| Redis server hostname |
|
| Redis server port |
|
| Redis password (if required) | (empty) |
| Default cache TTL (seconds) |
|
| Class details cache TTL |
|
| Languages/releases cache TTL |
|
| Logging level |
|
| Transport mode: |
|
| Host to bind for HTTP transports |
|
| Port for HTTP transports |
|
Supported Languages
The following language codes are supported (depending on your ETIM account):
EN- Englishde-DE- Germannl-BE- Dutch (Belgium)fr-BE- French (Belgium)fi-FI- Finnishit-IT- Italiannb-NO- Norwegian
Usage
Running the Server
Start the server with Docker Compose:
docker-compose upFor detached mode (runs in background):
docker-compose up -dView logs:
docker-compose logs -f mcp-serverStop the server:
docker-compose downTesting with Claude Code
For testing with Claude Code in the same directory, a local mcp.json file is included:
# Open a new Claude Code terminal in this directory
cd "/home/sysadmin/Foss Google Drive/ETIM/ETIM_API/etim-mcp-server"
# Claude Code will automatically detect and use the mcp.json configuration
# Try commands like: "Search ETIM for cable products"The mcp.json file contains the MCP server configuration and allows Claude Code to connect to the ETIM server for testing.
Claude Desktop Integration
To use this MCP server with Claude Desktop, add the following to your Claude configuration:
On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"etim": {
"command": "docker",
"args": [
"compose",
"-f",
"/absolute/path/to/etim-mcp-server/docker-compose.yml",
"run",
"--rm",
"mcp-server"
]
}
}
}Replace /absolute/path/to/etim-mcp-server with the actual path to your installation.
After adding this configuration:
Restart Claude Desktop
The ETIM tools should appear in Claude's available tools
Try asking: "Search for cable products in ETIM"
Remote Access via SSE (e.g., Windows β WSL)
For accessing the MCP server remotely (e.g., from Windows Claude Desktop to a server running in WSL):
Configure the server for SSE mode in your
.env:MCP_TRANSPORT=sse MCP_HOST=0.0.0.0 MCP_PORT=8000Start the server (it will listen on port 8000):
docker-compose up -dConfigure Claude Desktop on Windows to connect via SSE:
{ "mcpServers": { "etim": { "url": "http://<WSL-IP>:8000/sse" } } }Replace
<WSL-IP>with your WSL IP address (find it withhostname -Iin WSL).
Available Tools
search_classes
Search ETIM product classes by keyword.
Parameters:
search_text(required): Search query (e.g., "cable", "downlight")language(optional): Language code (default: EN)max_results(optional): Maximum results to return (1-100, default: 10)
Example: "Search for LED downlight products"
get_class_details
Get detailed information about a specific ETIM product class.
Parameters:
class_code(required): ETIM class code (e.g., "EC001744")version(optional): Specific version number (latest if not provided)language(optional): Language code (default: EN)include_features(optional): Include full features list (default: true)
Example: "Get details for ETIM class EC001744"
search_features
Search ETIM features/characteristics.
Parameters:
search_text(required): Search querylanguage(optional): Language code (default: EN)max_results(optional): Maximum results (1-100, default: 10)
Example: "Search for IP rating features"
get_feature_details
Get detailed information about a specific ETIM feature.
Parameters:
feature_code(required): ETIM feature code (e.g., "EF007793")language(optional): Language code (default: EN)
Example: "Get details for feature EF007793"
search_groups
Search ETIM product groups.
Parameters:
search_text(required): Search querylanguage(optional): Language code (default: EN)max_results(optional): Maximum results (1-100, default: 10)
Example: "Search for lighting product groups"
get_supported_languages
Get list of supported languages for your ETIM account.
Parameters: None
Example: "What languages does ETIM support?"
get_etim_releases
Get list of ETIM release versions.
Parameters: None
Example: "Show me ETIM release versions"
get_all_languages
Get list of ALL ETIM languages globally (not just account-specific languages).
Parameters: None
Example: "Show me all ETIM languages available globally"
Note: This differs from get_supported_languages which returns only languages your account can access.
get_class_details_many
Get details for multiple classes in a single request (batch operation).
Parameters:
classes(required): List of class dictionaries with 'code' and optionally 'version'Example:
[{"code": "EC003025", "version": 1}, {"code": "EC003025", "version": 2}]
language(optional): Language code (default: EN)include_features(optional): Include full features list (default: true)
Example: "Get details for classes EC001744 version 1 and version 2"
Use Cases: Bulk catalog updates, version comparisons, data migration
get_all_class_versions
Get ALL versions of a specific class (complete version history).
Parameters:
class_code(required): ETIM class code (e.g., "EC002883")language(optional): Language code (default: EN)include_features(optional): Include full features list (default: false for performance)
Example: "Show me all versions of class EC002883"
Use Cases: Classification evolution tracking, migration planning, change history
get_class_for_release
Get class details for a specific ETIM release version.
Parameters:
class_code(required): ETIM class code (e.g., "EC000034")release(required): ETIM release name (e.g., "ETIM-9.0", "ETIM-10.0")language(optional): Language code (default: EN)include_features(optional): Include full features list (default: true)
Example: "Get class EC000034 as it was in ETIM-9.0"
Use Cases: Testing against specific versions, legacy system compatibility, release comparison
compare_classes
Compare multiple ETIM product classes side-by-side.
Parameters:
class_codes(required): List of class codes to compare (max 5)language(optional): Language code (default: EN)
Example: "Compare classes EC001744 and EC001679"
search_values
Search ETIM feature values (colors, materials, connector types, etc.).
Parameters:
search_text(required): Search querylanguage(optional): Language code (default: EN)deprecated(optional): Include deprecated values (default: false)max_results(optional): Maximum results (1-100, default: 10)
Example: "Search for red color values"
get_value_details
Get detailed information about a specific ETIM value.
Parameters:
value_code(required): ETIM value code (e.g., "EV000397")language(optional): Language code (default: EN)
Example: "Get details for value EV000397"
search_units
Search measurement units (millimeters, watts, volts, etc.).
Parameters:
search_text(required): Search querylanguage(optional): Language code (default: EN)deprecated(optional): Include deprecated units (default: false)max_results(optional): Maximum results (1-100, default: 10)
Example: "Search for millimeter units"
get_unit_details
Get detailed information about a specific measurement unit.
Parameters:
unit_code(required): ETIM unit code (e.g., "EU571097")language(optional): Language code (default: EN)
Example: "Get details for unit EU571097"
search_feature_groups
Search ETIM feature groups (organizational categories for features).
Parameters:
search_text(required): Search querylanguage(optional): Language code (default: EN)max_results(optional): Maximum results (1-100, default: 10)
Example: "Search for electrical feature groups"
get_feature_group_details
Get detailed information about a specific feature group.
Parameters:
feature_group_code(required): ETIM feature group code (e.g., "EFG00004")language(optional): Language code (default: EN)
Example: "Get details for feature group EFG00004"
get_group_details
Get detailed information about a specific product group.
Parameters:
group_code(required): ETIM group code (e.g., "EG020005")language(optional): Language code (default: EN)include_releases(optional): Include releases information (default: true)
Example: "Get details for group EG020005"
get_class_diff
Get class details WITH changes compared to previous version. Perfect for tracking classification evolution and understanding what changed between versions.
Parameters:
class_code(required): ETIM class code (e.g., "EC000034")version(required): Class version to compare (must be version 2 or higher)language(optional): Language code (default: EN)
Example: "Show me what changed in EC000034 version 7"
health_check
Check server health and connection status.
Parameters: None
Example: "Check ETIM server health"
Architecture
βββββββββββββββββββββββ βββββββββββββββββββββββ
β Claude Desktop β β Claude Desktop β
β (Local - stdio) β β (Remote - SSE) β
ββββββββββββ¬βββββββββββ ββββββββββββ¬βββββββββββ
β stdio β HTTP :8000
β β
ββββββββββββΌββββββββββββββββββββββββββββΌβββββββββββ
β FastMCP Server β
β (Python/AsyncIO) β
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β’ Multi-Transport (stdio/sse/streamable-http) β
β β’ Auth Manager β
β β’ API Client β
β β’ Cache Layer β
βββββββ¬ββββββββββββββββββββββββββββββββββββββββββββ
β
β TCP
βββββββΌβββββββ
β Redis β
β (Cache) β
βββββββ¬βββββββ
β
βββββββΌβββββββββββββββ
β ETIM API v2.0 β
β (OAuth2 + REST) β
ββββββββββββββββββββββComponents
FastMCP Server (
server.py): Main MCP server with tools, resources, and promptsETIM API Client (
client.py): Async HTTP client for ETIM API with cachingToken Manager (
auth.py): OAuth2 token management with automatic refreshRedis Cache (
cache.py): Async Redis wrapper for response cachingConfiguration (
config.py): Pydantic settings from environment variables
Development
Local Development Setup
Install Python 3.11+:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txtRun Redis locally:
docker run -d -p 6379:6379 redis:7-alpineCreate
.envfile with your credentialsRun the server:
python -m mcp run src.etim_mcp.server:mcp
Project Structure
etim-mcp-server/
βββ docker-compose.yml # Docker orchestration
βββ Dockerfile # Container image definition
βββ requirements.txt # Python dependencies
βββ .env # Configuration (not in git)
βββ .env.example # Configuration template
βββ .gitignore # Git ignore rules
βββ README.md # This file
βββ src/
βββ etim_mcp/
βββ __init__.py # Package initialization
βββ server.py # FastMCP server with tools
βββ client.py # ETIM API client
βββ auth.py # OAuth token manager
βββ cache.py # Redis cache wrapper
βββ config.py # Settings managementTesting
Test individual tools using the MCP inspector:
npx @modelcontextprotocol/inspector docker compose run --rm mcp-serverOr test API connectivity directly:
# Enter the container
docker-compose run --rm mcp-server bash
# Run Python interactively
python
>>> from etim_mcp.config import settings
>>> from etim_mcp.cache import RedisCache
>>> from etim_mcp.auth import EtimTokenManager
>>> from etim_mcp.client import EtimAPIClient
>>> import asyncio
>>>
>>> async def test():
... cache = RedisCache(settings.redis_host, settings.redis_port, settings.redis_password)
... await cache.connect()
... token_mgr = EtimTokenManager(cache)
... client = EtimAPIClient(token_mgr, cache)
... result = await client.get_allowed_languages()
... print(result)
... await client.close()
... await token_mgr.close()
... await cache.close()
>>>
>>> asyncio.run(test())Monitoring
Redis Commander
Access the Redis Commander web UI at http://localhost:8081 to:
View cached keys and their values
Monitor cache hit/miss rates
Inspect token storage
Manually clear cache if needed
Logs
View structured logs with timestamps:
docker-compose logs -f mcp-serverLog levels can be adjusted in .env:
DEBUG: Verbose logging including cache operationsINFO: Normal operational logs (default)WARNING: Only warnings and errorsERROR: Only errors
Troubleshooting
Server won't start
Problem: Failed to connect to Redis
Solution: Ensure Redis is running and healthy:
docker-compose ps
docker-compose logs redisAuthentication errors
Problem: Failed to obtain access token: 401
Solution: Verify your credentials in .env:
Check
ETIM_CLIENT_IDis correctCheck
ETIM_CLIENT_SECRETis correctEnsure there are no extra spaces or quotes
API request failures
Problem: HTTP error: 401 during API calls
Solution: The server automatically refreshes tokens, but if issues persist:
Check ETIM API status
Verify your account has access to requested resources
Clear Redis cache:
docker-compose down -v && docker-compose up
Claude Desktop can't find the server
Problem: Tools don't appear in Claude Desktop
Solution:
Verify the absolute path in
claude_desktop_config.jsonEnsure
.envfile exists with valid credentialsTest the server manually:
docker-compose run --rm mcp-serverRestart Claude Desktop completely
Check Claude Desktop logs for MCP errors
Slow responses
Problem: Queries take too long
Solution:
Check Redis is working:
docker-compose logs redisFirst queries are slower (cache miss) - subsequent queries should be fast
Monitor cache hit rates in Redis Commander
Adjust cache TTLs in
.envif needed
Clear all cached data
docker-compose down -v
docker-compose up -dThe -v flag removes volumes, including Redis data.
Performance
First request latency: 500-1000ms (OAuth + API call)
Cached request latency: 10-50ms (Redis lookup)
Token refresh: Automatic, transparent to users
Cache hit rate: Typically 70-90% for repeated queries
Security
OAuth tokens are stored in Redis with appropriate TTLs
Credentials are loaded from environment variables only
No credentials are logged or exposed in responses
Redis is accessible only within Docker network (not exposed externally)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
See CONTRIBUTING.md for detailed guidelines.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
Built with FastMCP
Powered by ETIM International
Uses Redis for caching, httpx for async HTTP, Pydantic for configuration
Developed and tested with assistance from Anthropic Claude Code, based on the original codebase and guidance from the project maintainer
Support
For ETIM API questions or issues:
ETIM International website: https://www.etim-international.com/
ETIM API documentation: https://etimapi.etim-international.com/swagger/index.html
For MCP protocol questions:
Model Context Protocol: https://github.com/modelcontextprotocol
FastMCP documentation: https://github.com/modelcontextprotocol/python-sdk
Version History
1.4.0 (Current): Multi-transport support
Added SSE and Streamable HTTP transport modes for remote access
New environment variables:
MCP_TRANSPORT,MCP_HOST,MCP_PORTPerfect for Windows Claude Desktop β WSL server scenarios
Added uvicorn as ASGI server for HTTP transports
1.3.0: Enhanced feature control and pagination
New
featuresparameter with 4 modes (none/count/summary/full)New
get_class_featurestool for paginated feature accessBREAKING:
include_featuresnow defaults toFalseNow covers 22 MCP tools
1.2.0: Phase 2 expansion - Batch operations & complete API coverage
Added 4 new tools: All Languages, Batch Class Details, All Class Versions, Class for Release
Now covers 21 MCP tools (up from 17)
Enhanced API coverage from 60% to 76% of available endpoints
1.1.0: Phase 1 expansion
Added 8 new tools: Values, Units, Feature Groups, Group Details, Class Diff
Now covers 17 MCP tools (up from 9)
1.0.0: Initial release with 9 tools, Redis caching, and Docker Compose setup
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
The E-commerce Marketplace For Every AI Agent. A Governed Catalog Of 600M+ US Products, Plus Four Agent Ready Capabilities Search, Price Comparison, Product-Vs-Product, And Detailed Q&A.
AI-agent product catalog: search, lookup & purchase routing over verified merchant data.
KYB for AI agents: GLEIF entity, parent chain, sanctions and EU VAT checks. Data lookup only.
Utility data for AI agents: IBAN, EU holidays, VAT rates, time zones, ECB FX. Pay per call.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI assistants to query standardized building classifications, properties, and data dictionaries from buildingSMART for BIM model enrichment.93-
- AlicenseNot gradedqualityBmaintenanceProvides read-only MCP tools to query the ETIM classification model, enabling AI agents to search classes, retrieve feature/unit definitions, and look up ETIM codes.12 npmMIT
- AlicenseAqualityCmaintenanceProvides read-only access to the buildingSMART Data Dictionary (bSDD), enabling AI assistants to search and retrieve construction classifications, classes, properties, and relations through natural language.124 npmMIT
- AlicenseNot gradedqualityCmaintenanceConnects Shopware 6 to AI assistants like Claude, ChatGPT, and Copilot, enabling read-only search and retrieval of products, categories, and cross-sells through the Store API.AGPL 3.0