Back to Home
yeison-liscano icon

http_mcp

Verified Safe

by yeison-liscano

Overview

Implements a lightweight server for the Model Context Protocol (MCP) over HTTP and STDIO, allowing exposure of Python functions as discoverable and executable remote tools and prompts.

Installation

Run Command
python tests/app/main.py

Environment Variables

  • AUTHORIZATION_TOKEN

Security Notes

The server uses Pydantic for robust data validation and serialization of JSON-RPC messages, mitigating common injection and malformed request vulnerabilities. It supports scope-based authorization via Starlette's authentication system, providing a strong access control mechanism. No direct use of dangerous functions like 'eval' or 'exec' was found. HTTP message size limits are enforced. The STDIO transport constructs a dummy request object with controlled headers, preventing direct user-supplied header injection. Overall, the design prioritizes secure handling of inputs and outputs within the MCP specification.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens50
Stars0
Forks1
Last Update2025-12-24

Tags

MCPHTTPSTDIOJSON-RPCStarlette