currency-converter-mcp
v1.0.0
Published
An mcp tool to use currency converter
Downloads
17
Readme
currency-converter-mcp
MCP server for currency conversion using the Frankfurter API.
Installation
npm install currency-converter-mcpUsage
CLI
npx currency-converter-mcpOptional config (all fields optional):
npx currency-converter-mcp --config '{"port":8000,"provider":{"name":"Frankfurter"}}'Defaults: port: 8000, provider: { name: "Frankfurter" }
Programmatic
import { CurrencyConverterMcp } from "currency-converter-mcp";
// No config (uses defaults)
const mcp = new CurrencyConverterMcp();
mcp.start();
// Partial config
new CurrencyConverterMcp({ port: 3000 });
new CurrencyConverterMcp({ provider: { name: "Frankfurter" } });Tools
convert- Convert amount from one currency to anotherget_available_currencies- Get list of supported currencies
Development
npm run develop # Watch mode
npm run inspector # MCP Inspector