Agro API MCP by usefulapi
Read satellite, NDVI, weather and soil data; create and delete fields in Agro API.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (2)
- LOWen agroapi_get_accumulated_temperature
- LOWen agroapi_get_accumulated_precipitation
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"agro-api": {
"url": "https://agro-api.usefulapi.io/mcp"
}
}
}Puntos de conexión remotos
https://agro-api.usefulapi.io/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (17)
🟢agroapi_list_polygons
List your polygons with id, name, area in hectares and centre. Start here to find a polygon id for the other tools. GET /polygons.
Esquema de entrada
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_polygon(polyid)
Get one polygon by id: geometry, name, area and centre. GET /polygons/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"polyid": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,64}$",
"description": "Polygon id (from agroapi_list_polygons)."
}
},
"required": [
"polyid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴agroapi_create_polygon(name, geo_json, duplicated)
Create a polygon (a field) from a GeoJSON Feature with a Polygon geometry, in [longitude, latitude] order. The vendor blocks a duplicate unless duplicated=true. Writes to your account. POST /polygons.
Esquema de entrada
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Name of the polygon."
},
"geo_json": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "Feature"
},
"properties": {
"type": "object",
"properties": {}
},
"geometry": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "Polygon"
},
"coordinates": {
"minItems": 1,
"type": "array",
"items": {
"minItems": 4,
"type": "array",
"items": {
"type": "array",
"prefixItems": [
{
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude, -180 to 180."
},
{
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude, -90 to 90."
}
],
"items": false,
"minItems": 2,
"maxItems": 2
},
"description": "Closed ring of [longitude, latitude] points; the first point equals the last."
}
}
},
"required": [
"type",
"coordinates"
]
}
},
"required": [
"type",
"geometry"
],
"description": "GeoJSON Feature with a Polygon geometry. The area must be 1 to 3000 ha."
},
"duplicated": {
"description": "Set true to allow a polygon that duplicates an existing one.",
"type": "boolean"
}
},
"required": [
"name",
"geo_json"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡agroapi_update_polygon(polyid, name)
Change the name of one polygon. Writes to your account. PUT /polygons/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"polyid": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,64}$",
"description": "Polygon id (from agroapi_list_polygons)."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "The new name."
}
},
"required": [
"polyid",
"name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴agroapi_delete_polygon(polyid)
Delete one polygon from your account. This cannot be undone through the API. DELETE /polygons/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"polyid": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,64}$",
"description": "Polygon id (from agroapi_list_polygons)."
}
},
"required": [
"polyid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_search_images(polyid, start, end)
Find satellite images (Landsat-8 and Sentinel-2) of a polygon between two Unix times, with each image date and its image, tile and statistics links. The API key is removed from the links; add your own appid to open them. GET /image/search.
Esquema de entrada
{
"type": "object",
"properties": {
"polyid": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,64}$",
"description": "Polygon id (from agroapi_list_polygons)."
},
"start": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
},
"end": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
}
},
"required": [
"polyid",
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_ndvi_history(polyid, start, end, type)
Get NDVI (vegetation index) statistics for a polygon over a time range. Choose the satellite with type: l8 (Landsat-8) or s2 (Sentinel-2). The vendor limits the long archive to its Corporate account. GET /ndvi/history.
Esquema de entrada
{
"type": "object",
"properties": {
"polyid": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,64}$",
"description": "Polygon id (from agroapi_list_polygons)."
},
"start": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
},
"end": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
},
"type": {
"description": "Data source: l8 = Landsat-8, s2 = Sentinel-2.",
"type": "string",
"enum": [
"l8",
"s2"
]
}
},
"required": [
"polyid",
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_current_weather(lat, lon)
Get the current weather at a latitude and longitude. GET /weather.
Esquema de entrada
{
"type": "object",
"properties": {
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude, -90 to 90."
},
"lon": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude, -180 to 180."
}
},
"required": [
"lat",
"lon"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_forecast_weather(lat, lon)
Get the 5-day weather forecast with 3-hour steps at a latitude and longitude. GET /weather/forecast.
Esquema de entrada
{
"type": "object",
"properties": {
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude, -90 to 90."
},
"lon": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude, -180 to 180."
}
},
"required": [
"lat",
"lon"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_historical_weather(lat, lon, start, end)
Get past weather at a latitude and longitude between two Unix times. Not in the free account. GET /weather/history.
Esquema de entrada
{
"type": "object",
"properties": {
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude, -90 to 90."
},
"lon": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude, -180 to 180."
},
"start": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
},
"end": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
}
},
"required": [
"lat",
"lon",
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_accumulated_temperature(lat, lon, threshold, start, end)
Get the accumulated temperature (growing degree sum above a threshold) at a latitude and longitude between two Unix times. Not in the free account. GET /weather/history/accumulated_temperature.
Esquema de entrada
{
"type": "object",
"properties": {
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude, -90 to 90."
},
"lon": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude, -180 to 180."
},
"threshold": {
"type": "number",
"description": "Base temperature threshold, in the unit the vendor documents (example 284)."
},
"start": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
},
"end": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
}
},
"required": [
"lat",
"lon",
"threshold",
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_accumulated_precipitation(lat, lon, start, end)
Get the accumulated precipitation at a latitude and longitude between two Unix times. Not in the free account. GET /weather/history/accumulated_precipitation.
Esquema de entrada
{
"type": "object",
"properties": {
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude, -90 to 90."
},
"lon": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude, -180 to 180."
},
"start": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
},
"end": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
}
},
"required": [
"lat",
"lon",
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_current_soil(polyid)
Get the current soil temperature and moisture for a polygon. GET /soil.
Esquema de entrada
{
"type": "object",
"properties": {
"polyid": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,64}$",
"description": "Polygon id (from agroapi_list_polygons)."
}
},
"required": [
"polyid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_historical_soil(polyid, start, end)
Get soil temperature and moisture for a polygon between two Unix times. Not in the free account. GET /soil/history.
Esquema de entrada
{
"type": "object",
"properties": {
"polyid": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,64}$",
"description": "Polygon id (from agroapi_list_polygons)."
},
"start": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
},
"end": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
}
},
"required": [
"polyid",
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_current_uvi(polyid)
Get the current UV index for a polygon. GET /uvi.
Esquema de entrada
{
"type": "object",
"properties": {
"polyid": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,64}$",
"description": "Polygon id (from agroapi_list_polygons)."
}
},
"required": [
"polyid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_forecast_uvi(polyid, cnt)
Get the UV index forecast for a polygon. cnt limits the number of values. GET /uvi/forecast.
Esquema de entrada
{
"type": "object",
"properties": {
"polyid": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,64}$",
"description": "Polygon id (from agroapi_list_polygons)."
},
"cnt": {
"description": "Number of forecast values to return.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"polyid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢agroapi_get_historical_uvi(polyid, start, end)
Get the UV index for a polygon between two Unix times. Not in the free account. GET /uvi/history.
Esquema de entrada
{
"type": "object",
"properties": {
"polyid": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,64}$",
"description": "Polygon id (from agroapi_list_polygons)."
},
"start": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
},
"end": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix time in seconds (UTC)."
}
},
"required": [
"polyid",
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Comunidad
Evidencia