Currency Exchange MCP Server
Enables real-time currency exchange rate retrieval and conversion for over 200 currencies. Supports operations like getting rates, converting amounts, and comparing currencies through natural language.
README
Currency Exchange MCP Server
A Model Context Protocol (MCP) server that provides real-time currency exchange rates and conversions for 200+ currencies. Built with FastMCP 2.0, designed for remote deployment, and optimized for use with Claude Desktop and other MCP clients.
Available Tools
-
get_available_currencies- Get a list of all supported currencies with their full names. -
get_exchange_rate- Get the current exchange rate between two currencies.- Required arguments:
from_currency(required): Source currency code (e.g., 'usd', 'eur')to_currency(required): Target currency code (e.g., 'gbp', 'jpy')date(optional): Date in YYYY-MM-DD format (defaults to latest)
- Required arguments:
-
convert_currency- Convert an amount from one currency to another.- Required arguments:
amount(required): Amount to convertfrom_currency(required): Source currency codeto_currency(required): Target currency codedate(optional): Date in YYYY-MM-DD format
- Required arguments:
-
get_all_rates- Get all exchange rates for a base currency.- Required arguments:
base_currency(required): Base currency codedate(optional): Date in YYYY-MM-DD format
- Required arguments:
-
compare_rates- Compare exchange rates between a base currency and multiple target currencies.- Required arguments:
base_currency(required): Base currency codetarget_currencies(required): Comma-separated currency codesdate(optional): Date in YYYY-MM-DD format
- Required arguments:
Source
- https://github.com/fawazahmed0/exchange-api
Deployment
This project is deployed to Google Cloud Run using GitLab CI/CD.
The deployment job uses source-based deployment:
gcloud run deploy ... --source .
The Cloud Run service name is:
currency-exchange-mcp-server
Default deployment region in the pipeline:
europe-west1
DevOps Pipeline (GitLab CI/CD)
Pipeline definition files:
.gitlab-ci.ymlinfra/.gitlab-ci-terraform.yml
Stages
testterraformdeploy
What Happens in Each Stage
- Test (
run_test)
- Runs when Python source or dependency files change.
- Uses
uvand executespytest.
- Terraform (
terraform_validate,terraform_plan,terraform_apply)
- Initializes Terraform in
infra/. - Uses GitLab HTTP backend for remote Terraform state.
- Validates, plans, and applies infrastructure.
- Exports
GITLAB_DEPLOYER_SA_EMAILfrom Terraform output as a dotenv artifact.
- Deploy (
deploy-to-cloud-run)
- Depends on
terraform_applyoutput. - Authenticates to GCP using a service account key from CI variables.
- Deploys the current source to Cloud Run.
Terraform Infrastructure
Terraform files:
infra/main.tfinfra/variables.tfinfra/terraform.tfvars
Current Terraform provisions:
- A GitLab deployer service account.
- IAM roles required for Cloud Run deployment and build operations.
- A proxy service account with Cloud Run invoker permissions.
- Required Google APIs:
- Cloud Build API
- Cloud Run API
- Artifact Registry API
- Cloud Storage API
Local Terraform Commands
Run from infra/:
terraform init
terraform validate
terraform plan
terraform apply
Required GitLab CI/CD Variables
Set these variables in GitLab project settings:
GCP_PROJECT_ID: Target Google Cloud project ID.GCP_SERVICE_ACCOUNT_KEY: Base64-encoded JSON key used by the deploy job.TERRAFORM_SERVICE_ACCOUNT_KEY: Base64-encoded JSON key used by Terraform jobs.
Variables used internally by the Terraform pipeline include:
TF_STATE_ADRESS(as defined in pipeline file): GitLab Terraform state endpoint.TF_HTTP_USERNAME:gitlab-ci-token.TF_HTTP_PASSWORD:$CI_JOB_TOKEN.
End-to-End Flow
- Commit changes on
main(or open a merge request for test stage evaluation). - Tests run when application code or Python dependencies change.
- Terraform jobs run when files in
infra/change. - Terraform apply publishes the deployer service account email as pipeline artifact.
- Cloud Run deployment runs when app-related files change and uses the Terraform output service account.
Notes
- Workload Identity Federation resources are present in
infra/main.tfbut currently commented out. - Current pipeline uses service account keys from GitLab CI variables.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。