Skip to main content
Glama
compute-mcp

compute-mcp

compute-mcp

Sandboxed code execution + real-time financial data for AI agents.

MCP License

Features

🖥️ Code Execution

  • Python, JavaScript, Shell in isolated sandbox

  • Configurable timeouts

  • Returns stdout, stderr, exit code

📈 Financial Data

  • Real-time stock quotes (AAPL, MSFT, etc.)

  • Cryptocurrency prices (BTC, ETH, SOL)

  • Historical price data

  • Technical indicators (RSI, MACD, SMA, EMA)

  • Company fundamentals

  • Market news with sentiment analysis

  • Top gainers/losers

Related MCP server: Code Executor MCP Server

Quick Start

As MCP Server (Claude, Cursor, etc.)

{
  "mcpServers": {
    "compute-mcp": {
      "url": "https://your-server.com/mcp"
    }
  }
}

Run Locally

npm install
ALPHA_VANTAGE_KEY=your_key node http-server-v3.js

Tools

Tool

Description

run_python

Execute Python code

run_javascript

Execute JavaScript/Node.js code

run_shell

Execute shell commands

get_stock_quote

Real-time stock price

get_crypto_price

Cryptocurrency price

get_stock_history

Historical prices

get_technical_indicator

RSI, MACD, SMA, EMA

get_company_overview

Company fundamentals

get_market_news

News with sentiment

get_market_movers

Top gainers/losers

API Endpoints

MCP Protocol

  • POST /mcp - JSON-RPC endpoint

  • GET /.well-known/mcp/server-card.json - Server discovery

REST API

  • POST /run/python - Execute Python

  • POST /run/javascript - Execute JavaScript

  • POST /run/shell - Execute shell

  • GET /finance/quote/:symbol - Stock quote

  • GET /finance/crypto/:symbol - Crypto price

  • GET /finance/history/:symbol - Price history

  • GET /yahoo/quote/:symbol - Yahoo Finance quote

Environment Variables

ALPHA_VANTAGE_KEY=your_key  # Get free key at alphavantage.co
PORT=3457                    # Server port (default: 3457)

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables execution of code in a sandbox environment with integrated web search capabilities. Provides a basic framework for running code safely, primarily designed for AI agents and research applications.
      13
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides sandboxed code execution for AI agents with support for Python, JavaScript, and shell commands. Includes comprehensive safety features like destructive pattern blocking, timeout protection, and restricted file access for secure production use.
      28 PyPI
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to safely execute Python, JavaScript, and Bash code in an isolated Docker sandbox with strict security constraints.
      1
      -