Skip to main content
Glama
kiwonilee

Currency MCP Server

by kiwonilee

Currency MCP Server πŸ’΅

A simple MCP server that provides exchange rate information using the Frankfurter API.

Deploying the MCP Server on Cloud Run

  1. Enable APIs (Cloud Run, Artifact Registry, Cloud Build)

    cd run-mcp-server
    gcloud services enable \
      run.googleapis.com \
      artifactregistry.googleapis.com \
      cloudbuild.googleapis.com
  2. Deploy to Cloud Run

    gcloud run deploy currency-mcp-server \
        --no-allow-unauthenticated \
        --region=us-central1 \
        --source=.

Related MCP server: Currency MCP Server

Testing the MCP Server using the Gemini CLI in Cloud Shell

  1. Add Cloud Run Invoker permission to the Cloud Shell User

    gcloud projects add-iam-policy-binding $GOOGLE_CLOUD_PROJECT \
        --member=user:$(gcloud config get-value account) \
        --role='roles/run.invoker'
  2. Declare environment variables

    # Get the service URL from the deployed Cloud Run service
    export MCP_SERVER_URL=$(gcloud run services describe currency-mcp-server --region=us-central1 --format="value(status.url)")
    
    # Get an identity token for authentication
    export ID_TOKEN=$(gcloud auth print-identity-token)
  3. Configure the MCP server in the Gemini CLI

    cat <<EOF > ~/.gemini/settings.json
    {
      "selectedAuthType": "cloud-shell", // only cloudshell
      "mcpServers": {
        "exchange-mcp-server": {
          "httpUrl": "${MCP_SERVER_URL}/mcp",
          "headers": {
            "Authorization": "Bearer ${ID_TOKEN}"
          }
        }
      }
    }
    EOF
  4. Test in the Gemini CLI

    USD μ—μ„œ KRW 둜의 ν™˜μœ¨μ„ μ•Œλ €μ£Όμ„Έμš”

    alt text alt text

  5. References

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides 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.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables fetching real-time exchange rates between currencies and listing supported currency codes using the Frankfurter API.
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Wraps the Frankfurter API to enable currency exchange rate queries and conversions through natural language.
    159 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables real-time currency exchange rate lookup, conversion, historical rates, and currency catalog using the free Frankfurter API, no API key required.
    1 npm
    ISC