colombia-finance-mcp
Click on "Deploy 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., "@colombia-finance-mcp How much is USD 2,500 in COP at last Friday'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.
colombia-finance-mcp
An MCP server for Colombian financial data: gives Claude (or any MCP client) live access to the TRM — Colombia's official USD/COP exchange rate, certified by the Superintendencia Financiera — straight from the government open-data API. No API keys, no scraping.
Ask things like:
"What's today's TRM?" "How did the peso move in the first half of 2026? Min, max, average?" "How much is USD 2,500 in pesos at the official rate of last Friday?"
Tools
Tool | What it does |
| Official TRM (COP per USD) for any date since 1991 — today by default. Correctly resolves weekends/holidays to the carried-over rate. |
| Daily TRM series between two dates (up to ~5 years) with statistics: min, max, average, percent change. Long ranges are auto-sampled. |
| Converts USD ⇄ COP at the official TRM of any date. |
Example response from get_trm:
{
"requestedDate": "2026-09-26",
"copPerUsd": 3306.86,
"validFrom": "2026-09-26",
"validTo": "2026-09-28",
"carriedOver": false,
"source": "Source: TRM certified by the Superintendencia Financiera de Colombia, published on datos.gov.co (dataset 32sa-8pi3)."
}Related MCP server: FX Currency MCP Server
Quickstart
Requires Node.js ≥ 18.
git clone https://github.com/AlejandroGuerra1823/colombia-finance-mcp.git
cd colombia-finance-mcp
npm install && npm run buildClaude Code:
claude mcp add colombia-finance -- node /absolute/path/to/colombia-finance-mcp/dist/index.jsClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"colombia-finance": {
"command": "node",
"args": ["/absolute/path/to/colombia-finance-mcp/dist/index.js"]
}
}
}How it works
Claude ──(MCP / stdio)──▶ server.ts ──▶ trm.ts ──▶ datos.gov.co (Socrata API)
3 tools │
zod-validated ├─ validation (dates, series bounds)
inputs ├─ in-memory cache (historical = immutable,
│ current rate = 1h TTL)
└─ stats engine (min/max/avg/Δ%)Design decisions worth noting:
TRM semantics are handled correctly. Each TRM record has a validity window; on weekends and holidays the last business-day rate carries over. Lookups resolve "latest record ≤ date", and responses flag
carriedOverexplicitly.Cache split by mutability. Historical rates never change → cached forever. The current rate can be superseded → 1-hour TTL.
Errors are messages, not crashes. Invalid dates, empty ranges, oversized ranges and malformed upstream data all return structured MCP errors the model can read and act on.
stdout is protocol-only. All logging goes to stderr, as the MCP stdio transport requires.
Development
npm run build # compile TypeScript (strict mode)
npm test # vitest — 16 unit tests (validation, stats, cache, error paths)Roadmap
UVR (Unidad de Valor Real) lookups
IBR reference rate
Colombian inflation (IPC) series
npm package (
npx colombia-finance-mcp)
Data source & disclaimer
Data comes from datos.gov.co dataset 32sa-8pi3, published by the Superintendencia Financiera de Colombia. This project is informational and not financial advice.
Author
Alejandro Guerra — AI Engineer · digital banking LinkedIn · Portfolio · GitHub
MIT © 2026
Available Tools
3 toolsconvert_usd_copConvert between USD and COP at official TRMA
Convert an amount between USD and COP using the official TRM of a given date (defaults to today). Source: TRM certified by the Superintendencia Financiera de Colombia, published on datos.gov.co (dataset 32sa-8pi3).
Inputs: amount (required), direction (required), date.
get_trmGet TRM (USD/COP official rate)A
Get Colombia's official TRM exchange rate (COP per 1 USD) for a date. Omit the date for today's rate. Weekends and holidays return the carried-over rate from the last business day. Series starts 1991-12-02. Source: TRM certified by the Superintendencia Financiera de Colombia, published on datos.gov.co (dataset 32sa-8pi3).
Inputs: date.
get_trm_rangeGet TRM history with statisticsA
Get the TRM (USD/COP) daily series between two dates (max ~5 years) with statistics: min, max, average, and percent change. Returns the full series for ranges up to 90 points, otherwise a monthly-sampled series plus stats. Source: TRM certified by the Superintendencia Financiera de Colombia, published on datos.gov.co (dataset 32sa-8pi3).
Inputs: end (required), start (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: get_trm retrieves a single date's rate, get_trm_range retrieves a series with statistics, and convert_usd_cop performs currency conversion. There is no overlap or ambiguity in their functions.
All tool names follow a consistent verb_noun snake_case pattern (get_trm, get_trm_range, convert_usd_cop). The verbs are appropriate and the naming is predictable.
Three tools is well within the typical 3-15 range and each earns its place by covering a distinct aspect of TRM data: single rate, range with stats, and conversion. The set is neither bloated nor thin.
For the inferred domain of Colombia's TRM exchange rate, the surface is complete: it supports retrieving a single date's rate, analyzing a date range with statistics, and converting amounts. No obvious gaps or dead ends exist.
Maintenance
Related MCP Connectors
Unofficial access to CBRT/TCMB daily exchange rates: latest, history since 1996, conversion.
Exchange rates, public holidays for 100+ countries, time zones and conversions
Convert currencies on the daily European Central Bank reference rates. No API key, no signup.
Convert currencies on the daily European Central Bank reference rates. No API key, no signup.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA template for deploying MCP servers on Cloudflare Workers without authentication. Enables easy creation and deployment of custom MCP tools that can be accessed remotely via Claude Desktop or Cloudflare AI Playground.9Mozilla Public 2.0
- FlicenseNot gradedqualityDmaintenanceProvides real-time and historical foreign exchange rates for 31+ currencies, enabling currency conversion, historical rate lookups, and time series analysis using data from the Frankfurter API.-
- AlicenseNot gradedqualityDmaintenanceProvides access to Chilean economic indicators (dolar, UF, IPC, etc.) via the mindicador.cl API, enabling queries for current values, historical series, and specific dates.MIT
- AlicenseAqualityBmaintenanceEnables querying official Brazilian Central Bank PTAX dollar closing exchange rates by specific date, date range, or most recent available quotation.39 npmMIT