grpc_mcp
Verified Safeby divik-coder
Overview
This repository provides a gRPC backend for text summarization and an MCP server that exposes this functionality as tools for an AI agent.
Installation
chmod +x run.sh && ./run.shEnvironment Variables
- AZURE_OPENAI_API_KEY
- AZURE_OPENAI_ENDPOINT
- AZURE_OPENAI_DEPLOYMENT_NAME
- AZURE_OPENAI_API_VERSION
- OPENAI_API_KEY
Security Notes
The application loads API keys from environment variables using `python-dotenv`, which is a good practice for handling secrets. Network services (gRPC and FastAPI) are configured to run on localhost (127.0.0.1) by default, limiting direct external exposure. There are no obvious `eval` statements or obfuscation techniques. Basic error handling and timeouts are implemented for the summarization calls. The primary security consideration revolves around potential prompt injection against the underlying LLM if user input is not carefully sanitized, although the current implementation's prompt structure is straightforward for summarization.
Similar Servers
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
mcp-servers
Provides a curated collection of Model Context Protocol (MCP) server configurations to enable AI agents to interact with various developer tools and services.
zeromcp
A minimal, pure Python Model Context Protocol (MCP) server for exposing tools, resources, and prompts via HTTP/SSE and Stdio transports.
mcp-ai-agent
This repository provides an AI agent designed to interact with and control entities within a Multi-Client Protocol (MCP) environment, likely a game or simulation.