Back to Home
rb58853 icon

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

Run Command
uvicorn my_api:app --host 0.0.0.0 --port 8000 --ws-ping-interval 0 --ws-ping-timeout 1200 --workers 1

Environment 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

Stats

Interest Score32
Security Score1
Cost ClassHigh
Avg Tokens1500
Stars2
Forks2
Last Update2025-12-08

Tags

LLMMCPChatbotAPIWebSocket