mcp-trm-colombia
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-trm-colombiaConvert 500 USD to COP at today's official rate."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-trm-colombia
The problem: ask any LLM what a dollar is worth in Colombian pesos and it will confidently make one up — a number from its training data, months stale, with no source.
What this does: gives the model the official rate. An MCP server over Colombia's TRM (Tasa Representativa del Mercado), published by the Superintendencia Financiera as open data. Every answer carries the exact rate used and the dates it is valid for, so it can be audited.
Try it:
uvx --from git+https://github.com/andresFLZ/mcp-trm-colombia mcp-trm-colombiahttps://github.com/user-attachments/assets/a2e5ba43-9727-4638-a4df-f68cbd58c455
Why an MCP server instead of a plain API call
Because the awkward parts are not the HTTP request. They are the rules a model gets wrong on its own:
One rate covers several days. The rate published on a Friday is normally valid through Sunday, and holidays stretch it further. Asking "the rate on Saturday" and getting nothing back is a bug; this returns the rate in force, with its window.
"Today" is ambiguous. Colombia is UTC-5 with no DST. A model reasoning in UTC asks for tomorrow and gets "not published yet". Handled here, once.
Old rates never change; today's still can. History is cached forever, the current one never is.
Every number needs provenance. A conversion that does not say which rate it used cannot be checked by anyone.
Related MCP server: Economía Venezuela MCP
Tools
Tool | What it answers |
| The official rate in force on a date, with its validity window |
| USD ⇄ COP at the rate for that date, reporting the rate used |
| Every rate in a period, plus min, max, average and the change across it |
| Today's date in Colombia and today's rate |
All dates are ISO YYYY-MM-DD. date defaults to today in Bogotá.
Errors are answers, not stack traces
A tool that throws leaves the model guessing. Every failure comes back as data, including the one field it actually needs — whether trying again could help:
{
"ok": false,
"error": "source_unavailable",
"message": "datos.gov.co did not respond in time. It is an open-data portal and it is occasionally slow; retrying usually works.",
"retryable": true
}
| Means |
|
| Bad date, unknown currency, negative amount |
|
| Valid date, no rate published for it |
|
| datos.gov.co timed out, errored, or sent something unreadable |
|
Install
Requires Python 3.10+ and the MCP Python SDK 2.x.
git clone https://github.com/andresFLZ/mcp-trm-colombia
cd mcp-trm-colombia
pip install -e ".[dev]"Use it from an MCP client
This repo ships a .mcp.json, so a client opened in this directory finds the
server with no configuration at all. For Claude Desktop, add this to
claude_desktop_config.json and restart it:
{
"mcpServers": {
"trm-colombia": {
"command": "uvx",
"args": ["--from", "git+https://github.com/andresFLZ/mcp-trm-colombia", "mcp-trm-colombia"]
}
}
}{
"mcpServers": {
"trm-colombia": {
"command": "python",
"args": ["-m", "mcp_trm_colombia.server"],
"env": { "PYTHONPATH": "/absolute/path/to/mcp-trm-colombia/src" }
}
}
}Then ask, in plain language:
"I invoiced USD 1,850 on August 15th. How many pesos was that at the official rate?" "How much did the peso move against the dollar this month?"
Data source
datos.gov.co dataset 32sa-8pi3 —
Tasa de Cambio Representativa del Mercado Histórico, published by the
Superintendencia Financiera de Colombia. Public, no API key, series starts
1991-12-02.
Tests
31 tests. 28 run offline against a mock transport, so the suite is deterministic and does not depend on a government portal being up:
pytest # 28 offline tests
pytest -m live # 3 more, against the real datasetThe offline set deliberately covers the failure paths, not just the happy one: HTTP 503, timeouts, malformed bodies, rows with missing fields, dates before the series begins, dates too far ahead, reversed ranges, negative amounts, unknown currencies — and that history is cached while today's rate is not.
Design notes
trm.pyhas no MCP import. The domain logic is plain Python and is tested on its own;server.pyonly adapts it. Swapping the transport touches one file.Decimal, neverfloat, for money. Rounding happens once, at the edge.The cache follows the data. A settled past rate is immutable, so it is kept forever. Today's can still be superseded, so it is re-read every time.
Errors are a taxonomy, not one catch-all. "You asked for something impossible" and "the source is down" need different reactions from the caller.
Built against MCP SDK 2.x (
MCPServer). The 1.x name for the same class wasFastMCP.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables access to Bank of Mexico (Banxico) economic data including real-time and historical USD/MXN exchange rates, inflation data, interest rates, and other financial indicators. Supports querying current rates, historical data with date ranges, and economic metadata through natural language.9MIT
- FlicenseNot gradedqualityDmaintenanceProvides real-time Venezuelan economic data, including official and parallel exchange rates, inflation statistics, and basic goods basket prices. It enables AI assistants to query historical economic trends and current market indicators via natural language.
- AlicenseAqualityBmaintenanceEnables AI agents to query public Latin American FX rates and perform auditable ledger reconciliation using a multi-rule matching engine.6MIT
- FlicenseAqualityCmaintenanceEnables querying Turkish economic data (inflation, FX rates, policy rates, etc.) from TCMB EVDS via curated tools, preventing LLM hallucination.6
Related MCP Connectors
Live & historical FX rates and currency conversion for AI agents. No API keys.
Live & historical FX rates for AI agents, from European Central Bank data. No API keys.
60+ units, live FX, timezones, and date arithmetic for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/andresFLZ/mcp-trm-colombia'
If you have feedback or need assistance with the MCP directory API, please join our Discord server