Back to Home
mcp-testing icon

server-tester

Verified Safe

by mcp-testing

Overview

A Playwright-based testing framework for evaluating and testing Model Context Protocol (MCP) servers, including protocol conformance and LLM host simulation.

Installation

Run Command
playwright test

Environment Variables

  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY
  • MCP_ACCESS_TOKEN
  • MCP_REFRESH_TOKEN
  • MCP_TOKEN_TYPE
  • MCP_TOKEN_EXPIRES_AT

Security Notes

The framework allows direct execution of shell commands for `stdio` transport configurations (e.g., `node server.js`). While this is a core feature for launching local servers under test, it represents a critical security risk if the `mcpConfig.command` is sourced from an untrusted input, potentially leading to arbitrary code execution. The HTTP transport connects to configured `serverUrl`, which also requires trust in the configuration source. There are no apparent hardcoded secrets or obfuscation. HTML reports and UI elements sanitize user-provided content (e.g., `JSON.stringify`, `escapeHtml`, `stripAnsiCodes`) to mitigate XSS risks.

Similar Servers

Stats

Interest Score14
Security Score7
Cost ClassHigh
Avg Tokens1000
Stars3
Forks0
Last Update2025-12-18

Tags

TestingMCPPlaywrightEvaluationServerProtocol ConformanceLLM Host Simulation