MY_FIRST_MCP_SERVER
Verified Safeby karthik-s092003
Overview
This project demonstrates an AutoGen agent interacting with an MCP server to perform code conversion between Java and Python, and utilize various utility tools like arithmetic, secret word generation, and weather lookup.
Installation
python main.pyEnvironment Variables
- API_KEY
Security Notes
The code uses environment variables for API keys, which is good practice. No 'eval' or obvious obfuscation. The 'get_current_weather' tool makes an external API call to 'wttr.in'. While 'wttr.in' is generally safe, direct passing of the 'city' parameter without explicit sanitization could theoretically be a minor risk if the external service were malicious or vulnerable to specific injection patterns. The core functionality relies on sending prompts and potentially sensitive code snippets to a third-party LLM provider (Gemini via OpenAIChatCompletionClient).
Similar Servers
ACI_MCP
A Node.js-based Model Context Protocol (MCP) server for managing and configuring Cisco ACI fabrics through its APIC REST API.
kerneldev-mcp
An MCP server for intelligent Linux kernel configuration management, building, and filesystem regression testing, including advanced device management for performance optimization.
ancplua-mcp
This project provides C#/.NET Model Context Protocol (MCP) servers that expose a robust set of development tools for filesystem, Git, CI, Roslyn code analysis, and multi-AI orchestration, designed for integration into AI-assisted development workflows.
MCPify
Exposes ASP.NET Core endpoints and OpenAPI specifications as tools for Model Context Protocol (MCP) compatible AI agents.