currency_exchange_mcp
A real-time currency exchange service built with Python and MCP (Model Context Protocol). Provides exchange rates between any two supported currencies and lists all available currencies. Features Docker support for easy deployment and uses Server-Sent Events (SSE) for efficient real-time communication.
Documentation
Currency Exchange Service
A currency exchange service that provides real-time exchange rates and lists supported currencies.
Features
- Get current exchange rates between any two supported currencies
- List all supported currencies
- Docker support for easy deployment
- SSE (Server-Sent Events) based communication
Prerequisites
- Python 3.11 or higher
- Docker (optional, for containerized deployment)
- Git
- Exchange Rate API key (get it from https://www.exchangerate-api.com/)
Installation
Using Docker (Recommended)
1. Clone the repository:
git clone
cd2. Create a `.env` file as instructed in `.env.example` in the project root:
# Get your API key from https://www.exchangerate-api.com/
- `EXCHANGE_RATE_API_KEY`: Your Exchange Rate API key
- `GROQ_API_KEY`: Your GROQ API key3. Build and start the Docker container:
docker compose up -dUsing Python directly
1. Clone the repository:
git clone
cd2. Create a `.env` file in the project root:
# Get your API key from https://www.exchangerate-api.com/
EXCHANGE_RATE_API_KEY=your_api_key_here3. Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate4. Install dependencies:
pip install -r mcpserver/requirements.txtUsage
Using the Python Client
Run the client script to interact with the service:
python mcpserver/client-sse.pyThis will:
- List all available tools
- Show an example exchange rate (INR to USD)
- Display a list of supported currencies
API Documentation
The service provides two main tools:
1. `get_exchange_rate(from_currency, to_currency)`
2. `list_supported_currencies()`
Development
To modify the service:
1. Make changes to `mcpserver/server.py`
2. Test using the client script
3. Rebuild the Docker container if using Docker:
docker compose build --no-cache
docker compose up -dGetting an API Key
1. Visit https://www.exchangerate-api.com/
2. Sign up for a free account
3. Get your API key from the dashboard
4. Add it to your `.env` file as shown in the installation steps
Frequently asked questions
What is currency_exchange_mcp?
currency_exchange_mcp is A real-time currency exchange service built with Python and MCP (Model Context Protocol). Provides exchange rates between any two supported currencies and lists all available currencies. Features Docker support for easy deployment and uses Server-Sent Events (SSE) for efficient real-time communication.
How do I install currency_exchange_mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is currency_exchange_mcp open source?
Yes — it is hosted on GitHub at https://github.com/ankitbelbase17/Currency_Exchange_MCP and has 1 stars.
Related MCP tools
Damn Vulnerable MCP Server Python-based implementation. Trusted by 1200+ developers. Trusted by 1200+ developers. Trusted by 1200+ developers.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases Python-based implementation. Trusted by 900+ developers.
Query MCP enables end-to-end management of Supabase via chat interface: read & write query executions, management API support, automatic migration versioning...
Model Context Protocol with Neo4j Python-based implementation. Trusted by 700+ developers. Trusted by 700+ developers. Trusted by 700+ developers.
An MCP server that provides control over Android devices via adb Python-based implementation. Trusted by 500+ developers.
A Model Context Protocol (MCP) server for PostgreSQL databases with enhanced capabilities for AI agents. Python-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP