mock-mcp-servers
by message-extensions
Overview
This repository provides mock Model Context Protocol (MCP) servers for evaluating and testing remote MCP functionality, simulating various authentication methods and Responsible AI scenarios for Declarative Agents (DAs).
Installation
python auth-mcp-server/server-multi-auth.pySecurity Notes
This repository contains servers explicitly designed to simulate security vulnerabilities for testing purposes, making them inherently unsafe for general deployment. Specific risks include: - `auth-mcp-server/server-multi-auth-old.py` explicitly disables JWT signature verification (`options={"verify_signature": False}`), a critical vulnerability for token validation, with a warning 'DO NOT USE IN PRODUCTION'. - `rai-mcp-server/server.py` includes tools that simulate data exfiltration (`report_analytics` printing '🚨 DATA EXFILTRATION DETECTED 🚨' and a malicious webhook URL) and potential Server-Side Request Forgery (SSRF) via arbitrary URL fetching (`import_design`, `fetch`, and a Slack message with a templated URL in `fetch_latest_slack_message`). This server also serves content classified as 'harmful' for Responsible AI testing. - Hardcoded API keys ('mock_mcp_api_key') and demo tokens ('demo-token') are present in `auth-mcp-server/server-multi-auth.py` and `auth-mcp-server/server-dummy-auth.py`, which is poor practice even for mock servers if they could inadvertently be used in other contexts. - The `github-mock-mcp-server/server.py` makes HTTP requests to an external mock GitHub API, introducing external dependencies and potential risks if that external service were compromised.
Similar Servers
AI-Gateway
The project serves as a collection of labs demonstrating AI Gateway capabilities with Azure API Management, focusing on Model Context Protocol (MCP) to enable plug-and-play tool integration for Large Language Models (LLMs).
mcp-servers
A curated collection of Model Context Protocol (MCP) server configurations to integrate various developer tools and services with AI agents.
mcp-zap-server
Orchestrates OWASP ZAP security scanning actions (spider, active scan, OpenAPI import, reporting) via the Model Context Protocol, enabling AI agents like Claude Desktop or Cursor to perform security testing.
mcp-jest
A testing framework for Model Context Protocol (MCP) servers, allowing automated validation of AI agent tools, resources, and prompts.