geo-agent

geo-agent

Exposes live earth-science data (e.g., earthquakes from USGS) as tools for MCP-compatible AI agents, enabling them to fetch and reason about real-time geophysical events.

Category
访问服务器

README

geo-agent

Live earth-science data, in two shapes: a tool for AI agents, and an app for humans.

  • 🔗 Live demo: https://kavyaagarwal-geo-agent.streamlit.app
  • 🔧 MCP server: exposes the same data as tools for any MCP compatible AI client (Claude Desktop, Cursor, etc.)
  • 📝 Writeup: https://kavya855084.substack.com/p/building-geo-agent-an-mcp-server

What this is

This project exposes earth-science data through two interfaces, because they solve different problems.

  • The Streamlit app is for humans. Open it, click around, look at charts, maps, and search results.
  • The MCP server is for agents. It lets an AI assistant decide, on its own, to pull live data or search reference material as one step while reasoning about something else entirely.

Three data sources, both interfaces: live earthquakes (USGS), live climate data (NASA POWER), and semantic search over real climate science reports (IPCC AR6, SR15).

Components

1. MCP server (server.py)

Exposes earth-science data as tools any MCP client can call.

Tools:

  • get_recent_earthquakes(min_magnitude, days): recent significant earthquakes worldwide, via USGS. Read-only, annotated.
  • get_climate_point_data(latitude, longitude, days): recent daily temperature, precipitation, and solar radiation for any location, via NASA POWER. Read-only, annotated. Handles NASA's processing-lag fill values gracefully instead of printing raw placeholder data.
  • search_climate_papers(query, n_results): semantic search over real climate science reports, see Component 3 below.
uv sync
uv run mcp dev server.py

Opens the MCP Inspector in your browser for testing tools directly.

2. Live web app (app.py)

Three tabs, same underlying data sources, built for human exploration:

  • Earthquakes: live filtering by magnitude and time window, a magnitude reference guide, an interactive map, and a raw data table.
  • Climate: pick a location (presets or custom coordinates), see temperature, precipitation, and solar radiation as time series, plus a location map.
  • Paper Search: ask a question, get back cited passages from real climate science reports, the same retrieval pipeline as the MCP tool.
uv run streamlit run app.py

3. Climate paper search

A local retrieval-augmented search system over real climate science reports (IPCC AR6 Synthesis Report, SR15), available both as an MCP tool and as a tab in the web app, so the same retrieval logic is usable by an agent or a person.

Pipeline:

  1. Ingestion (ingest.py, run once): PDFs in papers/ are read page by page with pypdf, split into ~800-character chunks with 100-character overlap so meaning isn't lost at chunk boundaries, and embedded with sentence-transformers (all-MiniLM-L6-v2, runs locally, no API key or cost).
  2. Storage: chunks, their embeddings, and metadata (source filename, page number) are persisted to a local Chroma vector database, just a folder on disk, no server process to run.
  3. Retrieval: a query is embedded with the same model, and Chroma returns the chunks whose embeddings are nearest to it by semantic similarity, not keyword overlap. Every result carries its source and page, so answers are traceable to a real document instead of generated from training data alone.

Two interfaces, same pipeline:

  • search_climate_papers(query, n_results), an MCP tool, callable autonomously by an agent
  • The Paper Search tab in the web app, the same retrieval logic, for direct human use, with a visible note confirming results come from local search, not the internet
uv run python ingest.py
uv run pytest tests/test_retrieval.py -v

Validation: tests/test_retrieval.py checks that 5 real climate questions each return a relevant passage in their top 3 results. This is a lightweight check (keyword presence in top-k), not a full IR evaluation; a more rigorous version would use precision@k, MRR, or a framework like Ragas.

Known limitations, documented honestly rather than hidden:

  • The corpus is small and curated (2 reports), not comprehensive literature coverage.
  • Overlapping chunks can produce near-duplicate results from the same page; results are not currently deduplicated by source/page.
  • PDF text extraction is occasionally noisy (e.g. figure captions interleaved with body text), a known limitation of plain-text PDF extraction, not something this project works around.

Tech stack

Python, MCP SDK, Streamlit, Plotly, httpx, Chroma, sentence-transformers, pytest, uv

Status

See commit history for progress. Connected to Claude Desktop and confirmed it correctly chooses between live-data tools and paper search depending on the question, and correctly recognizes when a question needs more than these three tools can offer. Next: a router agent that makes that same tool-selection decision explicitly, in code, instead of relying on the client's built-in reasoning.

Author

Kavya Agarwal. Website · LinkedIn

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选