Fetches cryptocurrency prices, 24-hour stats, market analysis and historical trends from the CoinCap API.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add crypto-price --env COINCAP_API_KEY='<COINCAP_API_KEY>' -- npx -y mcp-crypto-price~/.codex/config.toml
[mcp_servers.crypto-price]
command = "npx"
args = ["-y", "mcp-crypto-price"]
env = { COINCAP_API_KEY = "<COINCAP_API_KEY>" }
# codex mcp add crypto-price --env COINCAP_API_KEY='<COINCAP_API_KEY>' -- npx -y mcp-crypto-price~/.cursor/mcp.json
{
"mcpServers": {
"crypto-price": {
"command": "npx",
"args": [
"-y",
"mcp-crypto-price"
],
"env": {
"COINCAP_API_KEY": "<COINCAP_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"crypto-price": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-crypto-price"
],
"env": {
"COINCAP_API_KEY": "<COINCAP_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"crypto-price": {
"command": "npx",
"args": [
"-y",
"mcp-crypto-price"
],
"env": {
"COINCAP_API_KEY": "<COINCAP_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"crypto-price": {
"command": "npx",
"args": [
"-y",
"mcp-crypto-price"
],
"env": {
"COINCAP_API_KEY": "<COINCAP_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"crypto-price": {
"command": "npx",
"args": [
"-y",
"mcp-crypto-price"
],
"env": {
"COINCAP_API_KEY": "<COINCAP_API_KEY>"
}
}
}
}远程托管
claude mcp add --transport http crypto-price https://server.smithery.ai/@truss44/mcp-crypto-price/mcp~/.codex/config.toml
[mcp_servers.crypto-price]
url = "https://server.smithery.ai/@truss44/mcp-crypto-price/mcp"
# codex mcp add crypto-price --url https://server.smithery.ai/@truss44/mcp-crypto-price/mcp~/.cursor/mcp.json
{
"mcpServers": {
"crypto-price": {
"url": "https://server.smithery.ai/@truss44/mcp-crypto-price/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"crypto-price": {
"type": "http",
"url": "https://server.smithery.ai/@truss44/mcp-crypto-price/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"crypto-price": {
"httpUrl": "https://server.smithery.ai/@truss44/mcp-crypto-price/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"crypto-price": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://server.smithery.ai/@truss44/mcp-crypto-price/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"crypto-price": {
"url": "https://server.smithery.ai/@truss44/mcp-crypto-price/mcp"
}
}
}需要的环境变量
COINCAP_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。