ai-agent-mcp-server
by tariksagbas1
Overview
This project implements an MCP (Model Context Protocol) server and client using AMQP (RabbitMQ) for communication, enabling an LLM-powered agent to interact with internal tools and data resources.
Installation
python service_core/bootstrap.py --task mcpEnvironment Variables
- OPENAI_API_KEY
- LANGCHAIN_TRACING_V2
- LANGCHAIN_ENDPOINT
- LANGCHAIN_API_KEY
- LANGSMITH_PROJECT
- DEPLOYMENT_CODE
- SERVICE_CODE
- ICRON_LLM_SERVICE_VERSION
- EXTERNAL_PORT
Security Notes
Critical security vulnerabilities found: 1. Hardcoded Google API credentials (CLIENT_ID, CLIENT_SECRET, REFRESH_TOKEN) are present in `backup.ts`. This is a severe risk as these secrets would be exposed if the code is publicly accessible. 2. Hardcoded RabbitMQ credentials (username: 'platform', password: 'platform', vhost: 'tarik.sagbas') are used in `service_core/rpc_client.py` for `rpc_call_mcp`, making client-to-server communication dependent on static, non-environment-variable-driven secrets. 3. The FastAPI client (`mcp_amqp/lg_agent.py`) enables CORS with `allow_origins=["*"]`, which is overly permissive and can expose the service to cross-site scripting (XSS) attacks or unauthorized access from any domain. 4. The use of `exec` in `mcp_amqp/app.py` for dynamic function generation, while seemingly controlled by predefined schemas, still presents a potential attack vector if the schema generation or input is compromised.
Similar Servers
klavis
Develop and deploy AI agents that interact with a wide array of web services (e.g., Gmail, YouTube, LinkedIn, Supabase, Salesforce, Kubernetes) through a standardized Model Context Protocol (MCP), often orchestrated by an intelligent routing layer like Strata.
mcpstore
Orchestrate Microservice Context Protocol (MCP) services and adapt them for integration with various AI frameworks like LangChain, managing tools and their lifecycle.
metorial-platform
An open source integration platform for agentic AI, connecting AI models to external APIs, data sources, and tools.
agentxsuite
A unified open-source platform for connecting, managing, and monitoring AI agents and tools across various Model Context Protocol (MCP) servers.