mcp-pt
[!중요] 이 프로젝트는 비공식 커뮤니티 프로젝트입니다. 데이터 제공자(DGEG, IPMA, INE, GeoAPI.pt, AMA/dados.gov.pt)와 제휴 관계가 아닙니다. 각 제공자의 이용 약관을 준수하십시오. 특히 DGEG 연료 데이터는 비상업적 용도로만 사용 가능합니다.
기능
AI 어시스턴트에게 다음과 같은 질문을 할 수 있습니다:
"리스보아 구에서 가장 저렴한 디젤 주유소는 어디인가요?"
"내일 포르투에 비가 올까요? 활성 기상 경보가 있나요?"
"우편번호 1990-096은 어떤 지역인가요?"
"2021년 인구조사에서 포르투갈 인구는 얼마였나요?"
"dados.gov.pt에서 환경 관련 데이터셋을 검색해 주세요."
…그러면 적절한 도구를 호출하여 공개 API에 접근하고 실제 데이터로 답변합니다.
Related MCP server: mcp-servicos-pt
설치
npx를 사용하여 실행합니다 (설치 불필요) — MCP 호스트에서 이를 가리키기만 하면 됩니다.
Claude Desktop
claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\)에 추가:
{
"mcpServers": {
"pt": {
"command": "npx",
"args": ["-y", "mcp-pt"]
}
}
}Cursor
~/.cursor/mcp.json (또는 프로젝트의 .cursor/mcp.json)에 추가:
{
"mcpServers": {
"pt": { "command": "npx", "args": ["-y", "mcp-pt"] }
}
}모든 MCP 호스트
서버는 stdio를 통해 MCP와 통신합니다. 서버 명령으로 npx -y mcp-pt (또는 클론에서 node dist/index.js)를 실행하세요.
도구
도구 | 기능 | 출처 |
| 특정 구에서 가장 저렴한 주유소 (휘발유/경유/LPG) | DGEG |
| 특정 위치의 5일 예보 | IPMA |
| 활성 기상 경보 | IPMA |
| 우편번호 조회 | GeoAPI.pt |
| 좌표 → 구/시/구역 | GeoAPI.pt |
| 시 (concelho) 상세 정보 | GeoAPI.pt |
|
| INE |
| dados.gov.pt에서 데이터셋 검색 | dados.gov.pt |
모든 도구는 무료 공개 API를 호출하며 API 키가 필요하지 않습니다.
예시 (원시 MCP)
# List the tools over stdio
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"x","version":"0"}}}' \
'{"jsonrpc":"2.0","method":"notifications/initialized"}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | npx -y mcp-ptSDK와의 관계
mcp-pt는 동일한 데이터를 위한 독립형 다국어 SDK 패밀리 — precos-combustiveis-pt,
ipma-api,
geoapi-pt-sdk,
ine-pt 및
dados-gov-pt — 의 AI 인터페이스 계층입니다.
서버는 자체적으로 완전하며 (API를 직접 호출) 따라서 해당 패키지에 대한 의존성이 없습니다.
개발
npm install
npm test # vitest
npm run build # tsup → dist/index.js (executable)
node dist/index.jsFAQ
아니요. 모든 도구는 무료 공개 포르투갈 API를 사용합니다.
아니요 — 독립적인 커뮤니티 프로젝트입니다. 각 제공자의 이용 약관을 준수해 주십시오 (DGEG 연료 데이터는 비상업적 용도입니다).
stdio를 통해 MCP와 통신하는 모든 호스트 — Claude Desktop, Cursor, Continue 및 MCP SDK를 사용하는 사용자 정의 클라이언트.
라이선스
MIT © Marcelo Domingues
Available Tools
8 toolsfuel_pricesB
Find the cheapest fuel stations in a Portuguese district (data: DGEG). Use for questions about gasolina/gasóleo/GPL prices near a place.
Inputs: district (required), limit, fuelType.
ine_indicatorA
Fetch an INE (Instituto Nacional de Estatística) statistics indicator by its 7-digit code (varcd). Pass dimension selectors (Dim1 is the period; use 'T' for a dimension's total). Example: varcd '0011609', dims { Dim1: 'S7A2021', Dim2: 'PT', Dim3: 'T', Dim4: 'T' }.
Inputs: varcd (required), dims, lang.
municipalityC
Details of a Portuguese municipality (concelho): NIF, area, contacts, postal code (data: GeoAPI.pt).
Inputs: name (required).
open_data_searchA
Search the Portuguese open-data portal dados.gov.pt for datasets by keyword (data: dados.gov.pt / uData).
Inputs: query (required), pageSize.
postal_codeB
Look up a Portuguese postal code (código postal) — locality, municipality, district and streets (data: GeoAPI.pt).
Inputs: postalCode (required).
reverse_geocodeA
Reverse geocode a coordinate in Portugal → district, municipality and parish (freguesia) (data: GeoAPI.pt).
Inputs: lat (required), lon (required).
weather_forecastC
5-day weather forecast for a Portuguese location (data: IPMA). Give a city/locality name.
Inputs: location (required).
weather_warningsA
Active meteorological warnings for Portugal (data: IPMA). Returns only non-green (active) warnings.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool addresses a distinct domain (fuel prices, weather, postal codes, geocoding, municipalities, statistics, open data search) with no overlapping purposes, making it easy for an agent to select the correct tool.
All tool names follow a consistent snake_case pattern with descriptive noun_phrase or verb_noun structures (e.g., postal_code, reverse_geocode, open_data_search), ensuring predictability.
With 8 tools, the server provides a focused yet comprehensive coverage of Portuguese public data services, avoiding bloat or insufficiency for its intended scope.
The tool set covers major data categories for Portugal (energy, weather, geography, government, statistics, open data) with no critical gaps; common queries are well-served.
Related MCP Connectors
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Real-world data for agents: air quality, geocoding, quakes, holidays, web search
660+ data tools for agents: TikTok, Douyin, Instagram, YouTube, X, weather, GitHub. Pay per call.
Public Data Ukraine Mcp connects AI agents to real public APIs via MCP. Tools include
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to query Brazilian public data from IBGE, Banco Central, INMET, and Câmara dos Deputados, including population, economic indicators, weather observations, and legislative information, without requiring API keys for most tools.143MIT
- FlicenseAqualityCmaintenanceEnables querying Portuguese weather forecasts from IPMA, with tools to list localities and retrieve temperature and weather predictions.2-
- AlicenseNot gradedqualityBmaintenanceEnables agents to query fuel prices at filling stations in mainland Portugal from DGEG data, finding the cheapest nearby stations by place, postal code, coordinates, concelho or district. Also supports station details, regional and national market statistics, and daily national price history.MIT
- AlicenseBqualityBmaintenanceEnables AI assistants to answer questions about Portugal from official open-data sources — weather and warnings, postal codes, INE/BPstat statistics, parliamentary votes, public contracts, SNS health statistics, medicine shortages and duty pharmacies, fuel and EV charging prices, and Lisbon bus arrivals — all read-only with no API keys, citing the source and date of every answer.1742254 PyPI2MIT