mcp-impo
mcp-impo
用于 IMPO 乌拉圭开放数据 API 并带有 SQLite 缓存的 MCP 服务器。
安装
pip install mcp-impoRelated MCP server: Spanish Public Data MCP
使用方法
from mcp_impo import get_schema, get_norma, search_normas, get_base_info
# Get schema
schema = get_schema()
# Get specific norm
norma = get_norma("ley", 2024, "19850")
# Search
results = search_normas("seguridad social", tipo="ley", limit=10)
# Get available bases
bases = get_base_info()命令行界面 (CLI)
mcp-impo --helpMCP 工具
schema- 检索 IMPO JSON 架构文档norma- 获取特定的规范 (norma) 或公告 (aviso)search- 搜索规范/公告bases- 获取有关可用数据库的信息
缓存
该服务器使用带有可配置 TTL 的 SQLite 缓存:
架构:24 小时
数据库信息:1 小时
规范数据:1 小时
搜索结果:10 分钟
通过传递 ttl 参数(秒)可以覆盖每个请求的 TTL。
mcp-name: io.github.daedalus/mcp-impo
开发
git clone https://github.com/daedalus/mcp-impo.git
cd mcp-impo
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/Available Tools
4 toolsbasesA
Get information about available bases in IMPO.
Returns metadata about the available databases and their structure from IMPO's datos abiertos service.
Inputs: ttl. Returns: result
normaC
Get a specific norma or aviso from IMPO.
Retrieves detailed information about a specific legal norm or notice from IMPO's database in JSON format.
Inputs: tipo (required), anio (required), nro (required), sec, +1 more. Returns: result
schemaA
Retrieve IMPO JSON schema documentation.
Returns the JSON schema defining the structure for normas and avisos from IMPO's datos abiertos API. This schema describes all available fields for Uruguayan legislation and official notices.
Inputs: ttl. Returns: object
searchB
Search for normas or avisos in IMPO database.
Performs a search across IMPO's database of Uruguayan legislation and official notices. Results can be filtered by type and year.
Inputs: query (required), tipo, anio, limit, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: 'bases' retrieves database metadata, 'schema' provides the data structure, 'search' performs queries, and 'norma' fetches a specific record. No overlap or ambiguity.
Tool names are all single lowercase nouns (bases, norma, schema, search), following a consistent, predictable pattern without mixing conventions.
Four tools is well-scoped for a legislation/norm search service: metadata, schema, search, and retrieval cover the core functionality without excess or deficiency.
The set covers key operations: explore databases, understand schema, search, and retrieve specific items. Missing a direct 'list all normas' endpoint, but search can approximate it, so minor gap.
Maintenance
Related MCP Connectors
MCP server for Brazilian Federal Senate open data (legislative, administrative, e-Cidadania).
An MCP server for Georgian public data, read from the organizations that publish it.
Hosted MCP server for live public-data APIs and Skills for AI agents.
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server deployed on Cloudflare Workers that provides access to Uruguayan legislation from the official IMPO database. It enables users to search for legal norms, retrieve full texts, and query specific articles from laws, decrees, and the constitution.-
- AlicenseAqualityDmaintenanceMCP server for querying Spanish government open data APIs including grants, legislation, company registry, statistics, and open data catalog. Enables LLMs to access Spanish public information on-the-fly.265MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that enables searching and retrieving judicial decisions from the Uruguayan National Public Jurisprudence Database (BJN).-
- AlicenseAqualityCmaintenanceMCP server that connects AI to the Chilean legislation system (Ley Chile) for retrieving legal norms, citations, and intertemporal analysis.283MIT