Athena Agent
Athena Agent — 实时地震数据流
一个由 MCP 服务器支撑的 Athena AI 代理。它从 USGS 公共数据流中拉取真实地震读数,并在聊天中将其渲染到交互式小部件中。
运行
npm install
npm start # http://localhost:8787/mcp在使用 Athena 之前,请先验证:
npx @modelcontextprotocol/inspector@latest --server-url http://localhost:8787/mcp --transport http你应该会看到一个工具 get_recent_earthquakes 和一个资源 ui://widget/quakes.html,其 mimeType 为 text/html+skybridge。
Related MCP server: Comprehensive Earthquake Monitoring MCP Server
通过 HTTPS 暴露
Athena 需要 HTTPS。开发时:
ngrok http 8787在 https://athenachat.bot/chatbot/mybots/create 注册该代理,并将 MCP URL 设置为 https://<your-subdomain>.ngrok.app/mcp — /mcp 路径是必需的。
若需要一个在演示结束后依然有效的 URL,请推送此仓库并部署到 Render 或 Railway。构建命令为 npm install,启动命令为 npm start。两者都会注入 PORT,服务器会读取该变量。
触发该工具的提示词
"显示最近的地震"
"今天有地震活动吗?"
"过去一周有大地震吗?"
是什么让小部件具有交互性
控件 | 行为 |
震级滑块 | 在浏览器中即时筛选,不调用服务器 |
点击行 | 展开深度、坐标、海啸标志 |
时间窗口按钮 | 通过 |
重新渲染后,状态通过 window.openai.setWidgetState 得以保留。
将此适配到其他数据源
有两处需要修改,代码中均已标记。
server.js—fetchData函数。返回{ items: [...], meta: {...} }。 同时更新工具名称、描述和inputSchema,以匹配新的领域。public/widget.html—render函数,以及两个控件处理程序。
其余一切(传输、资源注册、CORS、元数据)均与领域无关。
会浪费你时间的事情
window.openai未定义 → 资源的 mimeType 不完全是text/html+skybridge。callTool无任何效果 → 该工具缺少_meta["openai/widgetAccessible"]: true。小部件无法直接获取 API 数据 → iframe 的 CSP 会阻止该操作。请在服务端获取。
Athena 仍然显示旧工具 → Settings → Connectors → Refresh。
Athena 的文档导入的是
@modelcontextprotocol/sdk/server/streamable-http.js。 该路径不存在。正确的是streamableHttp.js。
This server cannot be installed
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
- AlicenseAqualityCmaintenanceProvides access to the USGS Quakes API within Claude Desktop, enabling users to retrieve earthquake data and details through natural language queries.32871MIT
- AlicenseNot gradedqualityDmaintenanceIntegrates multiple earthquake data sources (IRIS, USGS, GNSS) for comprehensive seismic monitoring, analysis, and risk assessment via natural language queries.1MIT
- AlicenseNot gradedqualityCmaintenanceProvides access to the USGS Earthquake Catalog for querying earthquake events via the FDSNWS API, enabling natural language questions about earthquake data.11MIT
- AlicenseAqualityCmaintenanceMCP server wrapping the USGS Earthquake Hazards API, enabling AI assistants to search the global earthquake catalog, look up event details, count quakes, find 'Did You Feel It' reports, and read realtime feeds.5MIT
Related MCP Connectors
Search USGS and EMSC seismic data — real-time feeds, event queries, and earthquake counts.
US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
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/kankush7776-del/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server