Skip to main content
Glama

[!IMPORTANT] これは非公式のコミュニティプロジェクトです。データ提供元(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)を起動します。

ツール

ツール

機能

提供元

fuel_prices

県内の最安燃料スタンド(ガソリン/軽油/LPG)

DGEG

weather_forecast

場所の5日間予報

IPMA

weather_warnings

有効な気象警報

IPMA

postal_code

郵便番号の検索

GeoAPI.pt

reverse_geocode

座標 → 県/市/教区

GeoAPI.pt

municipality

市(コンセリョ)の詳細

GeoAPI.pt

ine_indicator

varcd によるINE統計指標の取得

INE

open_data_search

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-pt

SDKとの関係

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.js

FAQ

いいえ。すべてのツールは無料のポルトガル公開APIを使用します。

いいえ — 独立したコミュニティプロジェクトです。各提供元の利用規約を尊重してください(DGEGの燃料データは非商用です)。

stdio経由でMCPと通信するすべてのもの — Claude Desktop、Cursor、Continue、およびMCP SDKを使用するカスタムクライアント。

ライセンス

MIT © Marcelo Domingues

Available Tools

8 tools
fuel_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).

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

    A3.7/5.0

    Scored across 8 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    With 8 tools, the server provides a focused yet comprehensive coverage of Portuguese public data services, avoiding bloat or insufficiency for its intended scope.

    Completeness5/5

    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

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      14
      3
      MIT
    • F
      license
      A
      quality
      C
      maintenance
      Enables querying Portuguese weather forecasts from IPMA, with tools to list localities and retrieve temperature and weather predictions.
      2
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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
    • A
      license
      B
      quality
      B
      maintenance
      Enables 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.
      17
      42
      254 PyPI
      2
      MIT