Skip to main content

A secure, monetized Python sandbox for data optimization and Matplotlib rendering via x402.

Project description

agentic-compute-mcp

Agentic API Platform: MCP Bridge

mcp-name: io.github.codelad1304/agentic-compute

A high-performance Model Context Protocol (MCP) server providing premium computational services to autonomous AI agents. This bridge connects Claude and other MCP-compatible LLMs to secure, cloud-hosted endpoints for advanced mathematical optimization and data visualization.

Built with FastMCP and FastAPI, this system leverages the x402 protocol for automated Machine-to-Machine (M2M) microtransactions on the Base network (USDC settlement).

Features

Native MCP Integration: Instantly expose computational tools to Claude Desktop and other MCP clients.

M2M Monetization (x402): Seamless crypto-based settlement per API call. Agents automatically pay for compute using USDC on Base.

Bypass LLM UI Limits: Overcomes LLM token limits by processing massive data structures (like Base64 image matrices) efficiently in the backend.

Available Tools (Endpoints)

This MCP server currently exposes the following premium tools to AI agents:

  1. execute_code (Cost: 0.10 USDC)
  • Executes arbitrary, agent-generated Python code in a highly secure, isolated remote Azure sandbox.

  • Capabilities: Protects the host machine from untrusted code execution while returning standard output (stdout) and standard error (stderr) directly to the agent.

  1. sanitize_csv (Cost: 0.25 USDC)
  • Cleans and normalizes raw, unstructured CSV data into strict JSON arrays.

  • Capabilities: Automatically normalizes headers, handles null values, and drops empty rows, preparing messy data for immediate mathematical modeling.

  1. optimize_ga (Cost: 0.50 USDC)
  • Runs a high-performance Genetic Algorithm (GA) to optimize data models (Polynomial, Logistic, Exponential).

  • Capabilities: Smart parameter initialization, proportional mutation to prevent premature convergence, and high-accuracy curve fitting (achieves <1% MAPE).

  • Ideal for: Load forecasting, predictive modeling, and complex hyperparameter tuning.

  1. generate_plot (Cost: 0.30 USDC)
  • A Matplotlib-based rendering engine that generates production-ready charts and graphs.

  • Capabilities: Bypasses LLM token generation limits by natively drawing data and returning lightweight base64 image streams directly to the host machine.

  • Ideal for: Visualizing optimization results, time-series data, and mathematical models.

Installation & Setup

  1. Install via PyPI:
pip install agentic-compute-mcp-codelad1304
  1. Configure Environment Variables: Create a .env file or export the following variable in your terminal to allow your local MCP client to process agentic payments:
export EVM_PRIVATE_KEY=your_private_key_here

Using with Claude Desktop

  • To install this server for Claude Desktop, add the following to your claude_desktop_config.json:
{
  "mcpServers": {
    "agentic-compute": {
      "command": "agentic-compute-mcp",
      "args": [],
      "env": {
        "EVM_PRIVATE_KEY": "your_private_key_here"
      }
    }
  }
}

License

This project is licensed under the MIT License - see the LICENSE file for details. mcp-name: io.github.codelad1304/agentic-compute

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentic_compute_mcp_codelad1304-1.0.7.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file agentic_compute_mcp_codelad1304-1.0.7.tar.gz.

File metadata

File hashes

Hashes for agentic_compute_mcp_codelad1304-1.0.7.tar.gz
Algorithm Hash digest
SHA256 a4fbd7ec74f32bcc19e64622b6975e2476bfda5d1a433fafa42dbaad6e9795d3
MD5 b8ddbfdde10143d37419b778bb00b978
BLAKE2b-256 e068aa412693e5aced10406070c534be68bfa7a93104b2ae4d1b5d323cbb8ba5

See more details on using hashes here.

File details

Details for the file agentic_compute_mcp_codelad1304-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for agentic_compute_mcp_codelad1304-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 93122a0b7d4c6713a6ac57b8128197340ac6ec10bde0a25f614dbfdce36c4f25
MD5 995f92c3e0bc183e186b2cd9e74c95fc
BLAKE2b-256 1c1dbd696b2d0492abc2edc8a784a254a2d03b868fa04b477547ac7b44beb9a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page