MCP server bringing live FX rates, historical data, and multi-currency lookups from AllRatesToday to Claude Code, Cursor, Claude Desktop, and Windsurf. Free API key required.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add allratestoday-exchange-rates-hosted --env ALLRATES_API_KEY='<ALLRATES_API_KEY>' -- npx -y @allratestoday/mcp-server~/.codex/config.toml
[mcp_servers.allratestoday-exchange-rates-hosted]
command = "npx"
args = ["-y", "@allratestoday/mcp-server"]
env = { ALLRATES_API_KEY = "<ALLRATES_API_KEY>" }
# codex mcp add allratestoday-exchange-rates-hosted --env ALLRATES_API_KEY='<ALLRATES_API_KEY>' -- npx -y @allratestoday/mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"allratestoday-exchange-rates-hosted": {
"command": "npx",
"args": [
"-y",
"@allratestoday/mcp-server"
],
"env": {
"ALLRATES_API_KEY": "<ALLRATES_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"allratestoday-exchange-rates-hosted": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@allratestoday/mcp-server"
],
"env": {
"ALLRATES_API_KEY": "<ALLRATES_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"allratestoday-exchange-rates-hosted": {
"command": "npx",
"args": [
"-y",
"@allratestoday/mcp-server"
],
"env": {
"ALLRATES_API_KEY": "<ALLRATES_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"allratestoday-exchange-rates-hosted": {
"command": "npx",
"args": [
"-y",
"@allratestoday/mcp-server"
],
"env": {
"ALLRATES_API_KEY": "<ALLRATES_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"allratestoday-exchange-rates-hosted": {
"command": "npx",
"args": [
"-y",
"@allratestoday/mcp-server"
],
"env": {
"ALLRATES_API_KEY": "<ALLRATES_API_KEY>"
}
}
}
}远程托管
claude mcp add --transport http allratestoday-exchange-rates-hosted https://allratestoday.com/api/mcp --header 'Authorization: <AUTHORIZATION>'~/.codex/config.toml
[mcp_servers.allratestoday-exchange-rates-hosted]
url = "https://allratestoday.com/api/mcp"
http_headers = { Authorization = "<AUTHORIZATION>" }
# codex mcp add allratestoday-exchange-rates-hosted --url https://allratestoday.com/api/mcp~/.cursor/mcp.json
{
"mcpServers": {
"allratestoday-exchange-rates-hosted": {
"url": "https://allratestoday.com/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"allratestoday-exchange-rates-hosted": {
"type": "http",
"url": "https://allratestoday.com/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"allratestoday-exchange-rates-hosted": {
"httpUrl": "https://allratestoday.com/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"allratestoday-exchange-rates-hosted": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://allratestoday.com/api/mcp",
"--header",
"Authorization:<AUTHORIZATION>"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"allratestoday-exchange-rates-hosted": {
"url": "https://allratestoday.com/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}需要的环境变量
ALLRATES_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。