mock-mcp
Verified Safeby mcpland
Overview
Facilitates AI-generated mock data for testing web applications by bridging test runners with Model Context Protocol (MCP) clients.
Installation
npx -y mock-mcp@latestEnvironment Variables
- MOCK_MCP
- MCP_SERVER_PORT
Security Notes
The server primarily acts as a conduit between a test process and an external AI client. While the server's code itself appears robust without direct `eval` or obvious vulnerabilities, a critical security consideration lies in the trust placed in the AI-generated data. The server forwards mock data supplied by the AI client without deep validation against the original OpenAPI schema (only structural validation is performed on the mock data arguments, not content). This means if the external AI client is compromised or manipulated (e.g., via prompt injection), it could generate malicious data (e.g., XSS payloads, SQL injection strings) that is then injected into the test environment. While the server doesn't execute this malicious data, it acts as the delivery mechanism.
Similar Servers
mcp-shark
Aggregate multiple Model Context Protocol (MCP) servers into a single unified interface with a powerful monitoring UI, enabling real-time traffic capture, logging, and AI-powered security analysis.
mcp-jest
Automated testing, discovery, and validation framework for Model Context Protocol (MCP) servers.
inspector
An interactive developer tool for testing and debugging MCP (Model Context Protocol) servers, including support for MCP-UI and OpenAI Apps SDK widgets.
mcp-playground
A web-based developer tool for testing, inspecting, and debugging Model Context Protocol (MCP) servers with real-time interaction and request logging.