Back to Home
raffaeler icon

PyMcp

Verified Safe

by raffaeler

Overview

Demonstrates a sample Model Context Protocol (MCP) server with basic text processing and AI integration using the Python FastMCP library.

Installation

Run Command
docker run -i sample-mcp-server

Environment Variables

  • MCP_SERVER_HOST
  • MCP_SERVER_PORT
  • OPENAI_API_KEY

Security Notes

The server's code does not contain 'eval', obfuscation, or hardcoded secrets. It uses `os.getenv` for configuration (host/port) and `python-dotenv` for loading environment variables. The `oneLiner` tool utilizes `context.sample()` to interact with an external AI model. This interaction implicitly relies on an LLM setup (e.g., API keys), and the `include_context='thisServer'` parameter means this server's tools could be called by the LLM. While this is part of FastMCP's design, it requires awareness regarding potential prompt injection if user inputs are not adequately handled by the underlying LLM system, though no direct vulnerability is observed in the provided server code.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens150
Stars0
Forks0
Last Update2025-11-20

Tags

PythonFastMCPMCP ServerAISampleTools