code-execution-with-mcp
by shams858
Overview
AI agent that generates and executes Python code to interact with Airtable using the Model Context Protocol (MCP) pattern for automation.
Installation
python cli.pyEnvironment Variables
- ANTHROPIC_API_KEY
- AIRTABLE_MCP_URL
Security Notes
The system executes Python code generated by an LLM in a subprocess. While there's a `validate_code` function attempting to blacklist dangerous imports (`os`, `subprocess`, `sys`, `eval`, `exec`, `open`, etc.) using AST parsing, blacklisting can be bypassed by sufficiently motivated attackers or through clever LLM prompt engineering. The execution environment is the same Python interpreter and current working directory, which is not a true isolated sandbox (e.g., containerized). This poses a significant risk if malicious code is generated, potentially leading to arbitrary code execution or data exfiltration.
Similar Servers
airtable-mcp-server
A Model Context Protocol server that provides read and write access to Airtable databases, enabling LLMs to inspect schemas and manage records.
airtable-mcp
Provides a Model Context Protocol (MCP) server for Airtable, enabling AI agents to perform full CRUD operations, schema management, webhooks, batch operations, and AI-powered analytics through natural language interactions.
MCP-Agent
An autonomous AI agent designed to discover, connect to, and utilize tools and resources from various Model Context Protocol (MCP) servers to accomplish tasks.
Local_MCP_Client
The client acts as a cross-platform web and API interface for natural language interaction with configurable MCP servers, facilitating structured tool execution and dynamic agent behavior using local LLMs.