vehicle-mcp-server
v1.0.0MCP server for Brazilian vehicle fleet intelligence using SENATRAN data.
MCP server for querying Brazilian vehicle fleet data from SENATRAN. The package exposes vehicle fleet analytics through the Model Context Protocol (MCP), using the STDIO transport. The server reads the SENATRAN dataset from the SENATRAN_CSV_PATH environment variable.
Summary extracted from the README.
Vehicle MCP Server
MCP server for querying Brazilian vehicle fleet data from SENATRAN.
The package exposes vehicle fleet analytics through the Model Context Protocol (MCP), using the STDIO transport.
Requirements
- Node.js >= 20
- SENATRAN CSV dataset
- An MCP-compatible client
Data configuration
The server reads the SENATRAN dataset from the SENATRAN_CSV_PATH environment variable.
The dataset is not bundled with the npm package. Configure this variable with the absolute path to your local CSV file.
Machine Learning API
The predict_vehicle_price tool requires an external Machine Learning HTTP API.
Configure its base URL through the ML_API_URL environment variable. The default is http://localhost:8003.
The prediction endpoint is /predict. The Machine Learning API is external and must be running separately when using this tool.
Available tools
get_fleet_by_state: retrieves vehicle fleet statistics for a Brazilian state.compare_states: compares vehicle fleet statistics between states.get_vehicle_distribution: retrieves the vehicle distribution by category.predict_vehicle_price: requests a vehicle price prediction from the external Machine Learning API.
Available resources
senatran-uf: provides SENATRAN fleet data through thesenatran://uf/{uf}resource URI template.
Run with npx
Configure your MCP client to launch the server:
{
"mcpServers": {
"vehicle-mcp-server": {
"command": "npx",
"args": ["-y", "@s-v7/vehicle-mcp-server"],
"env": {
"SENATRAN_CSV_PATH": "/absolute/path/to/senatran_uf.csv",
"ML_API_URL": "http://localhost:8003"
}
}
}
}
Replace the dataset path with the absolute path to your local SENATRAN CSV file.
If you do not use the vehicle price prediction tool, the Machine Learning API does not need to be available.
License
MIT