data
ExchangeRate MCP Integration for OpenAI Agents SDK
Connect ExchangeRate to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect ExchangeRate to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
ExchangeRate MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-exchangerate": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=exchangerate",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=exchangerate --write=deny Why Use KosmoKrator Here
Expose only ExchangeRate instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
ExchangeRate Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the ExchangeRate integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__exchangerate__exchangerate_list_currencies | exchangerate.exchangerate_list_currencies | Read | List all available currencies (fiat, crypto, precious metals, stablecoins). Supports 340+ assets. Optionally filter by name or code. |
integration__exchangerate__exchangerate_popular_currencies | exchangerate.exchangerate_popular_currencies | Read | Show the most commonly used currency codes (no API call needed). Use these codes directly with exchangerate_convert_currency. Popular codes: {$popular} |
integration__exchangerate__exchangerate_convert_currency | exchangerate.exchangerate_convert_currency | Read | Convert an amount from one currency to another. Supports 340 fiat currencies, cryptocurrencies, and precious metals. Common codes: usd, eur, gbp, jpy, cny, chf, cad, aud, btc, eth, sol, xau, xag. |
integration__exchangerate__exchangerate_rates | exchangerate.exchangerate_rates | Read | Get all exchange rates for a base currency. Optionally filter to specific target currencies. Supports 340 fiat currencies, cryptocurrencies, and precious metals. |
integration__exchangerate__exchangerate_history | exchangerate.exchangerate_history | Read | Compare a currency pair across multiple dates to see rate changes over time. Returns each date's rate and the overall change. |