Athena Agent
Athena Agent — ライブ地震フィード
MCP サーバーを搭載した Athena AI エージェントです。USGS の公開フィードから実際の地震観測データを取得し、チャット内のインタラクティブなウィジェットに表示します。
実行する
npm install
npm start # http://localhost:8787/mcpAthena に触れる前に確認してください:
npx @modelcontextprotocol/inspector@latest --server-url http://localhost:8787/mcp --transport httpツールが 1 つ(get_recent_earthquakes)と、リソースが 1 つ(ui://widget/quakes.html、mimeType は text/html+skybridge)表示されるはずです。
Related MCP server: Comprehensive Earthquake Monitoring MCP Server
HTTPS で公開する
Athena では HTTPS が必要です。開発時は次のようにします:
ngrok http 8787https://athenachat.bot/chatbot/mybots/create でエージェントを登録し、MCP URL を https://<your-subdomain>.ngrok.app/mcp に設定してください — /mcp パスが必須です。
デモの後も使える URL が必要な場合は、このリポジトリをプッシュして Render または Railway にデプロイしてください。ビルドコマンドは npm install、起動コマンドは npm start です。どちらも PORT を注入し、サーバーはそれを読み取ります。
ツールを起動するプロンプト
"最近の地震を見せて"
"今日、地震活動はありましたか?"
"この 1 週間で大きな地震はありましたか?"
ウィジェットをインタラクティブにする仕組み
操作 | 動作 |
マグニチュードスライダー | ブラウザ内で即座にフィルタリング、サーバー呼び出しなし |
行クリック | 深さ、座標、津波フラグを展開 |
時間範囲ボタン |
|
状態は window.openai.setWidgetState によって再レンダリング後も保持されます。
他のデータソースに応用する
変更箇所は 2 か所で、どちらもコード内にマークされています。
server.js—fetchData関数。{ items: [...], meta: {...} }を返してください。新しいドメインに合わせて、ツール名、説明、inputSchemaも更新してください。public/widget.html—render関数と、2 つの操作ハンドラー。
その他すべて(トランスポート、リソース登録、CORS、メタデータ)はドメインに依存しません。
時間を無駄にする落とし穴
window.openaiが undefined になる → リソースの mimeType が正確にtext/html+skybridgeになっていません。callToolが何も実行しない → ツールに_meta["openai/widgetAccessible"]: trueがありません。ウィジェットが API を直接フェッチできない → iframe の CSP がブロックしています。サーバーサイドでフェッチしてください。
Athena に古いツールが表示されたままになる → 設定 → コネクタ → 更新 を実行してください。
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