agno-mcp-rag-langgraph-project
by AI-Junction
Overview
A comprehensive agentic AI framework integrating RAG, LangGraph workflows, and external tools via an MCP server to provide an AI assistant with capabilities spanning information retrieval, task automation, and multi-agent orchestration.
Installation
uv run mcp run mcp_server/server.py --transport streamable-httpEnvironment Variables
- OPENAI_API_KEY
- OPENAI_API_BASE
- OPENAI_CHAT_MODEL
- RAG_RETRIEVE_LIMIT
- RAG_MAX_CONTEXT_CHARS
- RAG_MAX_PROMPT_TOKENS
- HOST
- PORT
- FLASK_DEBUG
- SERPAPI_API_KEY
- SENDGRID_KEY
- TVLY_API_KEY
Security Notes
CRITICAL VULNERABILITIES DETECTED: 1. Arbitrary Code Execution (eval): Several files within `swarm-writer-agents` (e.g., `ai-travel-agents/agents/orchestrator_agent.py`, `flight_agent.py`, `email_agent.py`, `hotel_agent.py`, `ai-recruiter-agency/agents/orchestrator.py`, `recommender_agent.py`, `screener_agent.py`, `matcher_agent.py`) use `eval(messages[-1]["content"])` with `messages[-1]["content"]` originating from user-controlled input. This allows an attacker to execute arbitrary Python code on the server, posing an extreme risk. 2. Exposed Filesystem Operations: The `mcp_server/tools/filesystem.py` module exposes tools (`read_file`, `write_file`, `list_dir`, `search_in_files`) that grant direct access to the server's filesystem. If the MCP server is publicly exposed or an agent is compromised, this could lead to unauthorized data access, modification, or deletion. 3. File Upload Processing: The `rag_project/app.py` and `app_from_rag_basics_final_working.py` allow file uploads. While `secure_filename` is used, the subsequent processing of these files (e.g., PDF extraction) could expose vulnerabilities if malicious files are uploaded. 4. Uncontrolled JSON Parsing: `langgraph_app/graph.py` performs `json.loads()` on agent output, which, while standard, could be a vector for attack if the underlying LLM's output is not strictly constrained and an attacker can inject malicious JSON structures.
Similar Servers
MaxKB
MaxKB (Max Knowledge Brain) is an enterprise-grade intelligent agent platform designed to lower the technical barrier and deployment costs of AI implementation, helping businesses quickly integrate mainstream large language models, build proprietary knowledge bases, and offer a progressive upgrade path from RAG to complex workflow automation and advanced agents for various application scenarios like smart customer service and office assistants.
context-portal
Manages structured project context for AI assistants and developer tools, enabling Retrieval Augmented Generation (RAG) and prompt caching within IDEs.
AgentUp
A developer-first framework for building, deploying, and managing AI agents, bringing Docker-like consistency and operational ease to AI agent development.
AgentUp
A developer-first framework for building, deploying, and managing secure, scalable, and configurable AI agents, supporting various agent types (reactive, iterative) and the Model-Context Protocol (MCP) for seamless interactions.