Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Spanish Vehicle Tax Valuation MCP Server

PyPI version

The Spanish Vehicle Tax Valuation MCP is a Model Context Protocol (MCP) server that provides structured access to Spanish vehicle tax valuation data, including 2025 average sale prices and depreciation rates for vehicles, boats, motorcycles, and transport means per Orden HAC/1484/2024. It allows AI models to query tax valuation references for Spanish property transfer, inheritance, gift, and special transport taxes.

🎉 Now available on PyPI! Install with a single command - no Python setup required.

🚀 Quick Start for Claude Desktop

Simple 2-Step Setup (No Python Required!)

Step 1: Install UV (One-Time Setup)

Windows - Open PowerShell and run:

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

macOS/Linux - Open Terminal and run:

curl -LsSf https://astral.sh/uv/install.sh | sh

Step 2: Configure Claude Desktop

  1. Open your Claude Desktop configuration file:

    • Windows: Press Win+R, type %APPDATA%\Claude\claude_desktop_config.json, press Enter
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add this configuration:

{
  "mcpServers": {
    "spanish-vehicle-tax": {
      "command": "uvx",
      "args": ["--pre", "--from", "spanish_vehicle_tax_valuation_mcp", "spanish-vehicle-tax-mcp"]
    }
  }
}

Note: The --pre flag installs the beta version. Remove it once version 1.0 is released.

  1. Save the file and restart Claude Desktop

  2. Done! 🎉 You can now ask Claude about Spanish vehicle tax valuations

Example Questions

Try asking Claude:

  • "What vehicle categories are available?"
  • "Search for Toyota models from 2023"
  • "Calculate the tax valuation for a 3-year-old BMW X5"
  • "What's the depreciation rate for 5-year-old cars?"

Features

  • Vehicle Categories: Query different types of vehicles (cars, motorcycles, trucks, boats, etc.)
  • Vehicle Search: Search for vehicle models by make, year, and category
  • Price Information: Access historical and current pricing data
  • Depreciation Rates: Get official depreciation rates by vehicle category and age
  • Tax Valuation: Calculate official tax valuations based on Spanish regulations
  • Real-time Data: Connect to live API for up-to-date vehicle information

Available Tools

The MCP server exposes the following tools:

1. get_vehicle_categories

Get all available vehicle categories (cars, motorcycles, trucks, etc.).

2. search_vehicle_models

Search for vehicle models with optional filters:

  • make: Vehicle manufacturer (e.g., "Toyota", "Honda")
  • year: Model year (e.g., 2023, 2024)
  • category_id: Filter by category
  • page, per_page: Pagination options

3. get_vehicle_model_details

Get detailed information about a specific vehicle model by ID.

4. get_vehicle_prices

Get vehicle price information with optional filters for model and year.

5. get_depreciation_rates

Get official depreciation rates filtered by category, age, or effective year.

6. calculate_vehicle_tax_valuation (Primary Tool)

Calculate the official tax valuation for a vehicle:

  • model_id: The vehicle model ID
  • vehicle_age: Age in years
  • valuation_year: Optional year for calculation

Returns original price, depreciation rate, and taxable value.

7. get_stored_valuations

Get previously calculated valuations from the database.

8. check_api_health

Check the health and availability of the backend API.

Example Queries

Once integrated with your client, you can ask:

  • "What are the available vehicle categories?"
  • "Search for Toyota models from 2023"
  • "Calculate the tax valuation for a 3-year-old Toyota Corolla"
  • "What's the depreciation rate for 5-year-old cars?"
  • "Show me prices for model ID 42"

📚 Documentation

🧪 Testing

Run the test suite:

# Test all endpoints
python tests/test_server.py

# Run pytest suite
pytest tests/

📁 Project Structure

spanish-vehicle-tax-valuation-mcp/
├── src/                    # Application source code
│   ├── app.py             # FastAPI wrapper for Azure
│   ├── server.py          # MCP server with 8 tools
│   ├── api_client.py      # HTTP client for backend API
│   └── config.py          # Configuration settings
├── tests/                  # Test files
│   ├── test_server.py     # Integration tests
│   └── test_api_client.py # Unit tests
├── docs/                   # Documentation
│   ├── INSTALL.md         # Installation guide
│   ├── AZURE_DEPLOY.txt   # Deployment guide
│   └── ARCHITECTURE.md    # Architecture docs
├── requirements.txt        # Python dependencies
└── README.md              # This file

🔗 Quick Start

  1. Access Production Server: See docs/INSTALL.md
  2. Deploy Your Own: See docs/AZURE_DEPLOY.txt
  3. Local Development:
    pip install -r requirements.txt
    uvicorn src.app:app --reload --port 8000
    

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues, questions, or contributions, please open an issue on GitHub

Metadata

Release files for spanish-vehicle-tax-valuation-mcp 0.1.0b4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spanish-vehicle-tax-valuation-mcp 0.1.0b4
File Size Uploaded Provenance Actions
spanish_vehicle_tax_valuation_mcp-0.1.0b4.tar.gz 12.4 kB Without provenance Details for spanish_vehicle_tax_valuation_mcp-0.1.0b4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spanish-vehicle-tax-valuation-mcp 0.1.0b4
File Interpreter ABI Platform Actions
spanish_vehicle_tax_valuation_mcp-0.1.0b4-py3-none-any.whl Python 3 none any Details for spanish_vehicle_tax_valuation_mcp-0.1.0b4-py3-none-any.whl

Total release size: 25.9 kB

Release files / spanish_vehicle_tax_valuation_mcp-0.1.0b4.tar.gz

Download URL spanish_vehicle_tax_valuation_mcp-0.1.0b4.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fd39ccff2c1a00256394216b8ef33aeee505ba8a3a3dc61db15266b32ccf4daa
BLAKE2b-256 checksum
How to use checksums
9afcb90089ee3b6b35498e106a3470e939b2726c494bef454976612dc803f4ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / spanish_vehicle_tax_valuation_mcp-0.1.0b4-py3-none-any.whl

Download URL spanish_vehicle_tax_valuation_mcp-0.1.0b4-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b3ce43df78376f6ea645989f1797be3ae4ef99cdc5c4fbe73893ff500e92836
BLAKE2b-256 checksum
How to use checksums
52f5be449c10aefd6640c0a214870d8f2eb08db10f694d9f17f4b19c7da6dde4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Security for spanish-vehicle-tax-valuation-mcp 0.1.0b4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page