test-mcp-server
Verified Safeby 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_local_docker.shEnvironment 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
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
mcp-servers
A curated collection of Model Context Protocol (MCP) server configurations to integrate various developer tools and services with AI agents.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
mcp-servers
An MCP server for managing files in Google Cloud Storage, supporting CRUD operations (save, get, search, delete) and exposing files as resources.