mcp-pt
[!重要] 这是一个非官方社区项目。与数据提供方(DGEG、IPMA、INE、GeoAPI.pt、AMA/dados.gov.pt)无关。请遵守各提供方的条款——特别是DGEG燃油数据仅限非商业用途。
功能
向您的AI助手提问,例如:
"里斯本区最便宜的柴油加油站是哪家?"
"明天波尔图会下雨吗?有空闲气象预警吗?"
"邮政编码1990-096对应哪个地点?"
"2021年人口普查中葡萄牙有多少居民?"
"在dados.gov.pt上搜索关于环境的数据集。"
……它将调用正确的工具,访问公共API,并用真实数据回答。
Related MCP server: IPMA MCP Server
安装
用 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)作为服务器命令。
工具
工具 | 功能 | 数据来源 |
| 某区最便宜的加油站(汽油/柴油/液化石油气) | 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-pt与SDK的关系
mcp-pt 是一系列独立的、多语言SDK的AI层,这些SDK针对相同的数据——precos-combustiveis-pt、
ipma-api、
geoapi-pt-sdk、
ine-pt 和
dados-gov-pt。该服务器是自包含的(直接调用API),因此不依赖这些包。
开发
npm install
npm test # vitest
npm run build # tsup → dist/index.js (executable)
node dist/index.js常见问题
不需要。每个工具都使用免费的葡萄牙公共API。
没有——这是一个独立的社区项目。请遵守各提供方的条款(DGEG燃油数据仅供非商业用途)。
任何通过stdio支持MCP的客户端——Claude Desktop、Cursor、Continue,以及使用MCP SDK的自定义客户端。
许可证
MIT © Marcelo Domingues
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceProvides access to Portuguese meteorological data from IPMA (Instituto Português do Mar e da Atmosfera), including weather forecasts, warnings, UV index, seismic data, and weather station observations for cities in Portugal.6
- FlicenseAqualityDmaintenanceProvides access to Portuguese weather data from IPMA (Instituto Português do Mar e da Atmosfera), including weather forecasts, meteorological warnings, seismic data, UV index, and real-time observations from weather stations across Portugal.6
- AlicenseAqualityDmaintenanceProvides comprehensive access to Portuguese weather data from IPMA, including forecasts, warnings, sea state, fire risk, UV index, seismic activity, and weather station observations for all Portuguese cities and islands.10MIT
- AlicenseAqualityBmaintenanceEnables lookup of Brazilian public data including companies (CNPJ), postal codes (CEP), banking, economy, geography, and more through 15 tools and 2 guided prompts, powered by BrasilAPI with no API key required.15MIT
Related MCP Connectors
Real-world data for agents: air quality, geocoding, quakes, holidays, web search
15 media & data tools for AI agents: search, transcribe, subtitles, voiceover, translate & more.
Give your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/marcelogdomingues/mcp-pt'
If you have feedback or need assistance with the MCP directory API, please join our Discord server