Code
БесплатноНе проверенSTDIO MCP server that allows agents to run their code in Google Cloud Functions
Описание
STDIO MCP server that allows agents to run their code in Google Cloud Functions
README
An MCP (Model Context Protocol) server that provides code interpretation capabilities via Google Cloud Functions.
Features
- Execute Python, JavaScript, and Bash code in a sandboxed environment
- Automatic deployment to Google Cloud Functions
- STDIO-based MCP server implementation
Prerequisites
- Python 3.11+
- Google Cloud SDK (
gcloud) installed and configured - A Google Cloud Project with Cloud Functions API enabled
Installation
$ pip install -e ".[dev]"
Usage
You'll first need to set up a Google Cloud Function that can execute code. The server will handle requests to this function. In this repo, run it with
$ uv run python deploy_gcf.py
As an MCP Server
$ uv run python main.py
Running Tests
$ uv run pytest
Testing with the MCP Inspector
You can use the CLI feature with
$ GCF_URL=$MY_COOL_GCF_URL \
npx @modelcontextprotocol/[email protected] \
--cli uv run python main.py \
--method tools/call \
--tool-name run_code \
--tool-arg "code=print(1+1)" \
--tool-arg language=python \
| jq
Configuration
Set the GCF_URL environment variable to use an existing Cloud Function, otherwise the server will attempt to deploy one automatically.
$ export GCF_URL="https://region-project.cloudfunctions.net/code-interpreter"
Architecture
- MCP Server: Handles tool requests from AI agents
- Google Cloud Function: Executes code in an isolated environment
- Supported Languages: Python, JavaScript (Node.js), Bash
Установка Code
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/leblancfg/code-mcpFAQ
Code MCP бесплатный?
Да, Code MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Code?
Нет, Code работает без API-ключей и переменных окружения.
Code — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Code в Claude Desktop, Claude Code или Cursor?
Открой Code на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Code with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
