Skip to main content

INE API integration with MCP (Model Context Protocol)

Project description

en es

INE-MCP. MCP Integration with INE API

INE is Spain's National Statistics Institute.

INE-mcp allows access to official Spanish statistical data directly from Claude AI and other compatible MCP clients using the Model Context Protocol (MCP).

INE-mcp is an MCP server that exposes tools for LLMs to query economic, demographic and social indicators from INE.

Key Features

  • Economic indicators query (GDP, CPI, unemployment, etc.)
  • Access to demographic data (census, migrations, birth rates)
  • Historical time series of statistical data
  • Metadata of official statistical operations
  • Filtering by territory, period and specific variables
  • Structured responses in JSON format

Installation

Install from uv

Prerequisites

  • Python 3.10 or higher
  • uv package manager

uv Installation

First install uv, a Python package manager.
Install from terminal:

For Mac and Linux:

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

For Windows:

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

Alternatively install with pip:

pip install uv

For more details about uv installation, see official documentation.

Integration with Desktop Clients like Claude

Once uv is installed, you can use the MCP server from any compatible client like Claude Desktop by following these steps:

  1. Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json
  2. Add this code block under "mcpServers":
"ine_mcp": {
    "command": "uvx",
    "args": [
        "ine_mcp"
    ]
}   
  1. Consult INE's official documentation: https://www.ine.es/dyngs/DAB/index.htm?cid=1099
  2. If you have other MCP servers configured, separate them with commas ,.

For integration with other MCP-compatible clients like Cursor, CODEGPT or Roo Code, simply add the same code block to the client's MCP server configuration.

Usage Examples

Once properly configured, you can ask things like:

- "What data from Spain's INE can you access?"
- "Find data from the Active Population Survey (EPA)"
- "Show me price indices for steel products during Q1 2023"
---

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ine_mcp-0.1.3.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ine_mcp-0.1.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file ine_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: ine_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ine_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 816b7be6faebc5c47e886132beed4ef59b0a6f8e2ff97521212dbc45115cc7a2
MD5 d79729b3b9c02d7dad4a20e55c58f065
BLAKE2b-256 f88848d47eabcc5a7beef4004721dc5978348bb8f26ec9d50b029bda19a4f941

See more details on using hashes here.

Provenance

The following attestation bundles were made for ine_mcp-0.1.3.tar.gz:

Publisher: pypi-publish.yml on AnCode666/ine-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ine_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ine_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ine_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d406ff38fe004a6ea516632bb7faff2bfa3f67cbbc9d80809becfed6a81c01e8
MD5 8f533c7dcc372db5fa215ffc9333adf1
BLAKE2b-256 7250962235789b24eeca0938ae5538b9ba02396d72116296b64d65af0ffe9a46

See more details on using hashes here.

Provenance

The following attestation bundles were made for ine_mcp-0.1.3-py3-none-any.whl:

Publisher: pypi-publish.yml on AnCode666/ine-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page