Back to Home
divik-coder icon

grpc_mcp

Verified Safe

by 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

Run Command
chmod +x run.sh && ./run.sh

Environment 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

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2025-12-14

Tags

gRPCMCPText SummarizationAIPython