AI Fuzz Testing MCP Server
A Model Context Protocol server for LLM fuzzing and testing, providing secure access to multiple AI providers through a standardized interface.
README
AI Fuzz Testing MCP Server
A Model Context Protocol (MCP) server for LLM fuzzing and testing, providing secure access to multiple AI providers through a standardized interface.
Overview
This MCP server enables:
- Multi-provider AI access: Support for Cerebras and Anthropic APIs
- Comprehensive testing: Full parameter support for fuzzing and testing LLMs
- Dynamic documentation: Real-time SDK documentation access
- Multiple transport modes: stdio, HTTP, and Server-Sent Events (SSE)
- Secure configuration: Environment-based API key management
Features
AI Provider Support
- Cerebras Cloud SDK: Complete chat completion API with streaming support
- Anthropic API: Full Claude model access with message completions
- Unified interface: Consistent API across all providers
- Model enumeration: List available models for each provider
MCP Tools
chat_completion: Create chat completions with any supported providerget_models: List available models for a providerget_client_info: Get client configuration and statuslist_providers: Show all available providers and their status
Documentation Resources
docs://{provider}/sdk/{path}: Dynamic SDK documentation browser- Real-time introspection of provider SDKs
- Hierarchical navigation through SDK components
Installation
Prerequisites
- Python 3.11+
- Poetry (recommended) or pip
Install Dependencies
Using Poetry:
poetry install
Using pip:
pip install -e .
API Key Configuration
Copy the example environment file and add your API keys:
cp .env.example .env
Edit .env and add your API keys:
ANTHROPIC_API_KEY=your_anthropic_api_key_here
CEREBRAS_API_KEY=your_cerebras_api_key_here
Usage
MCP Client Integration
The server supports multiple transport modes for different MCP client requirements:
stdio Mode (Default)
For local MCP clients:
python src/main.py
# or
mcp dev src/main.py
HTTP Mode
For web-based or remote clients:
python src/main.py --transport http --port 8000
# Test with:
mcp dev src/main.py
Server-Sent Events (SSE) Mode
For real-time streaming applications:
python src/main.py --transport sse --port 8000
# Test with:
mcp dev src.main.py
Command Line Options
python src/main.py [OPTIONS]
Options:
-t, --transport {stdio,sse,http} Transport mode (default: stdio)
-p, --port PORT Port for HTTP/SSE modes (default: 8000)
--host HOST Host address (default: localhost)
--log-level {DEBUG,INFO,WARNING,ERROR} Logging level (default: INFO)
--cors Enable CORS for HTTP/SSE modes
--timeout SECONDS Server timeout for testing
Tool Usage Examples
Chat Completion
{
"name": "chat_completion",
"arguments": {
"provider": "cerebras",
"kwargs": {
"messages": [{"role": "user", "content": "Hello!"}],
"model": "llama3.1-8b",
"stream": true,
"temperature": 0.7,
"max_tokens": 100
}
}
}
List Models
{
"name": "get_models",
"arguments": {
"provider": "anthropic"
}
}
Provider Status
{
"name": "list_providers",
"arguments": {}
}
Resource Access
Browse SDK documentation dynamically:
docs://cerebras/sdk/- List all Cerebras SDK componentsdocs://anthropic/sdk/Anthropic- Anthropic client documentationdocs://cerebras/sdk/chat.completions- Chat completions module docs
Development
Project Structure
src/
├── main.py # MCP server entry point
└── basic_mcp_example/
├── __init__.py
├── base_client.py # Abstract base client
├── cerebras.py # Cerebras implementation
└── anthropic.py # Anthropic implementation
Adding New Providers
- Create a new client module in
src/basic_mcp_example/ - Implement the
BaseClientabstract class - Add provider instantiation in
main.py - Update the
get_client_by_providerfunction
Testing
Run the development server:
mcp dev src/main.py
Test specific transport modes:
# Test HTTP mode
python src/main.py --transport http --port 8000 &
mcp dev src.main.py
# Test SSE mode
python src/main.py --transport sse --port 8001 &
mcp dev src.main.py
Security Considerations
- API keys are loaded from environment variables only
- No API keys are logged or exposed in responses
- Client configurations validate required credentials
- Transport modes support secure connection options
Dependencies
Core dependencies:
mcp: Model Context Protocol implementationpython-dotenv: Environment variable managementcerebras_cloud_sdk: Cerebras AI provideranthropic: Anthropic AI provider
Optional dependencies for HTTP/SSE modes:
uvicorn: ASGI serverstarlette: Web framework
Contributing
This is an example project. For production use, consider:
- Enhanced error handling and logging
- Rate limiting and quota management
- Authentication and authorization
- Monitoring and observability
- Extended provider support
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。