Back to Home
CursorTouch icon

MCP-Agent

by CursorTouch

Overview

An AI agent for discovering, connecting to, and interacting with Model Context Protocol (MCP) servers and their provided tools, resources, and prompts.

Installation

Run Command
python main.py

Environment Variables

  • GOOGLE_API_KEY

Security Notes

The agent dynamically executes shell commands via `StdioTransport` (e.g., `npm install`, `npx`) based on server configurations read from `config.json` or generated by the LLM. If a malicious MCP server configuration is added (manually by the user or through a compromised prompt), it could lead to arbitrary code execution on the host machine. The agent also connects to external MCP servers, meaning a malicious server could exploit vulnerabilities in the client or provide unsafe tool outputs. While `ast.literal_eval` is used for action inputs, `json.loads` is also present, which doesn't protect against malicious data if the structure is not enforced. There's no explicit sandboxing mentioned for tool execution or subprocess calls.

Similar Servers

Stats

Interest Score38
Security Score3
Cost ClassHigh
Avg Tokens2500
Stars11
Forks5
Last Update2025-12-04

Tags

AI AgentTool UseOrchestrationLLM IntegrationModel Context Protocol