TerraMCP for LangChain
earth.terramcp/terramcp
A Wrench AI service for environmental source discovery and live UK open-data tools.
client:LangChain
transport:streamable-http
tools:33
Install TerraMCP in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"terramcp": {
"transport": "streamable_http",
"url": "https://terramcp.earth/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- search_sources
- get_source
- list_categories
- top_sources
- get_consultant
- nrw_stations
- nrw_measures
- nrw_readings
- os_names
- ea_groundwater_stations
- ea_flood_features
- ne_designated_sites
- wq_sampling_points
- wq_measurements
- sepa_stations
- sepa_series
- sepa_values
- bgs_collections
- bgs_features
- planning_entities
- flood_zone_at_point
- tide_stations
- tide_readings
- rainfall_stations