fastchat-mcp
by rb58853
Overview
A Python client for integrating Language Models with Model Context Protocol (MCP) servers, allowing natural language interaction with external tools, resources, and prompts.
Installation
uvicorn my_api:app --host 0.0.0.0 --port 8000 --ws-ping-interval 0 --ws-ping-timeout 1200 --workers 1Environment Variables
- CRIPTOGRAFY_KEY
- OPENAI_API_KEY
- MASTER_TOKEN
Security Notes
CRITICAL: The server exposes WebSocket endpoints that accept an 'aditional_servers' header. This header's content is parsed as JSON and can add or override MCP server configurations. If an authenticated attacker provides a malicious 'stdio' protocol server configuration (e.g., specifying '/bin/sh -c "rm -rf /"' as the command), the `stdio_client` will execute arbitrary commands on the server. This constitutes a severe Remote Code Execution (RCE) vulnerability for authenticated users. The `fastchat.config.json` should be treated as a trusted configuration, and user-provided configuration overrides must be carefully sanitized or restricted.
Similar Servers
fastmcp
FastMCP is an ergonomic interface for the Model Context Protocol (MCP), providing a comprehensive framework for building and interacting with AI agents, tools, resources, and prompts across various transports and authentication methods.
slack-mcp-server
Provides a Model Context Protocol (MCP) server for integrating Slack workspace data and communication capabilities with AI models and agents.
zeromcp
A minimal, pure Python Model Context Protocol (MCP) server for exposing tools, resources, and prompts via HTTP/SSE and Stdio transports.
slack-mcp-server
Provides a robust Model Context Protocol (MCP) server for Slack integration, offering standardized access to Slack's API features through MCP tools and real-time webhook event processing for AI assistants and automation.