Back to Home
shams858 icon

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

Run Command
python cli.py

Environment 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

Stats

Interest Score30
Security Score4
Cost ClassLow
Avg Tokens4000
Stars2
Forks1
Last Update2025-11-19

Tags

AI AgentAirtableCode ExecutionAutomationLangChain