Back to Home
Traia-IO icon

test-mcp-server

Verified Safe

by Traia-IO

Overview

This MCP server provides a standardized interface for AI agents and LLMs to interact with the CoinMarketCap API, leveraging the Model Context Protocol (MCP) for tool exposure and D402 for payment processing.

Installation

Run Command
./run_local_docker.sh

Environment Variables

  • PORT
  • STAGE
  • LOG_LEVEL
  • SERVER_ADDRESS
  • MCP_OPERATOR_PRIVATE_KEY
  • MCP_OPERATOR_ADDRESS
  • D402_FACILITATOR_URL
  • D402_FACILITATOR_API_KEY
  • D402_TESTING_MODE
  • NETWORK
  • DEFAULT_SETTLEMENT_TOKEN
  • DEFAULT_SETTLEMENT_NETWORK

Security Notes

1. The server uses a very permissive CORS configuration (`allow_origins=["*"]`, `allow_methods=["*"]`, `allow_headers=["*"]`). While this might be acceptable for some public-facing APIs or development, in general, it is recommended to restrict origins to known client domains to prevent potential cross-site request forgery (CSRF) or other browser-based attacks. 2. The `run_local_docker.sh` script automatically generates `SERVER_ADDRESS` and `MCP_OPERATOR_PRIVATE_KEY` for local testing if they are not already set in the `.env` file. While convenient for local development, this approach is *critically insecure* for production environments. In production, these sensitive keys must be securely provisioned via a secrets management system, not generated or hardcoded. 3. The `MCP_OPERATOR_PRIVATE_KEY` is a highly sensitive credential used for signing settlement attestations in the D402 payment protocol. Its compromise would directly impact the integrity of payment processing for the server. 4. The tool implementations in `server.py` call the CoinMarketCap API using `requests.get`. However, the provided code for these tool functions *does not send any authentication headers* (e.g., `X-CMC_PRO_API_KEY`) to the CoinMarketCap API. This, combined with `deployment_params.json` stating `"requires_api_key": false` for the MCP server, implies these tools will likely fail to retrieve data from CoinMarketCap's *Pro* API, which typically requires an API key for most endpoints. This is a functional flaw, not a direct security vulnerability of the MCP server, but it impacts the server's utility.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2026-01-05

Tags

testapimcpcryptocurrencymarket-datablockchain