# Opencage

OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**Opencage** authenticates with an API key. Generate the credential in your Opencage account, then paste it into FlyMyAI the first time an agent uses an Opencage action.

[Get your Opencage credential →](https://opencagedata.com/dashboard)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `OpenCage API Key` | Your OpenCage Geocoding API key. _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `OPENCAGE_GEOCODE_FORWARD` | Tool to convert a human-readable address into geographic coordinates. use when you need to retrieve latitude and longitude from an address. | `q` |
| `OPENCAGE_GEOCODE_GEOJSON` | Tool to geocode and return geojson. use when you need geojson featurecollection. | `q` |
| `OPENCAGE_GEOCODE_GEOJSONP` | Tool to perform geocoding and return results in geojsonp format. use when you need a javascript callback wrapped response. | `q`, `callback` |
| `OPENCAGE_GEOCODE_REVERSE` | Tool to convert coordinates to a human-readable address. use when you have latitude and longitude and need a readable location. | `q` |
| `OPENCAGE_GEOCODE_XML` | Tool to perform geocoding and return results in xml format. use when you need xml-formatted geocoding responses from opencage. | `key`, `q` |

## Links

- [Opencage website](https://opencagedata.com)
- [Get API key / credential](https://opencagedata.com/dashboard)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
