agentic-compute-mcp
This server provides secure, remote backend computation for AI agents, with x402 USDC microtransactions per API call. Capabilities include:
execute_code_securely: Execute arbitrary Python code in an isolated Azure sandbox. Returns stdout/stderr (up to 8KB). Cost: 0.10 USDC.
sanitize_csv_securely: Clean and normalize raw CSV strings, handling nulls (NaN → null), normalizing headers, and dropping empty rows. Returns a JSON array. Cost: 0.25 USDC.
optimize_ga_securely: Run a Genetic Algorithm to optimize model parameters (polynomial, exponential, logistic) against numerical data, minimizing MAPE. Supports configurable generations. Returns optimized parameters and MAPE. Cost: 0.50 USDC.
generate_plot_securely: Generate line or scatter charts from coordinate arrays, with customizable titles and labels. Returns a base64-encoded image string. Cost: 0.30 USDC.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agentic-compute-mcpOptimize my sales forecast using genetic algorithm"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agentic-compute-mcp
mcp-name: io.github.codelad1304/agentic-computeLLM Context Summary: agentic-compute-mcp is a secure Model Context Protocol (MCP) server providing premium backend computation for autonomous AI agents. It offers remote Python code execution, CSV data sanitization, Genetic Algorithm optimization, and base64 Matplotlib visualization. It utilizes the x402 protocol on the Base network for automated USDC microtransactions per API call.
🖼️ Zero-Context Image Rendering Handling base64 image strings in LLM context windows is notoriously unreliable and eats up thousands of tokens. agentic-compute-mcp solves this locally. When you call generate_plot, the Azure sandbox generates the chart and streams the payload back to the MCP client. The client automatically intercepts the payload, decodes it, and saves it directly to your local machine as optimized_load_trend.png—completely bypassing the LLM context window to prevent token exhaustion and transcription errors.
System Prompt Instructions (For Developers)
Copy and paste this snippet into your agent's system prompt or .cursorrules file to enable autonomous tool usage:
You are equipped with the `agentic-compute-mcp` backend. Use these tools for heavy computation or secure data execution.
- You must pay for invocations automatically using the configured x402 EVM private key.
- Do NOT attempt to run Python locally if data requires complex optimization; route it to `execute_code`.
- For any unformatted CSV data, run `sanitize_csv` before performing mathematical analysis.
- When generating charts, use `generate_plot`. The backend will automatically save the chart directly to the local file system as a PNG. Do not attempt to read base64 strings.Related MCP server: code-sandbox-mcp
Available MCP Tools
This server exposes the following endpoints. Agents must evaluate the required capability and cost before invoking.
execute_code
Cost: 0.10 USDC / call
Input: Valid Python script string.
Output: Text (stdout/stderr). Max return limit is 8KB.
When to use: Use to execute arbitrary Python logic, heavy calculations, or data sorting in an isolated Azure sandbox. Do NOT use for local file system operations.
sanitize_csv
Cost: 0.25 USDC / call
Input: Raw, unformatted CSV string.
Output: JSON array.
When to use: Use immediately on raw data sets to handle null values (converts NaN to null), normalize headers, and drop empty rows prior to modeling.
optimize_ga
Cost: 0.50 USDC / call
Input: JSON array of numerical data.
Output: Optimized model parameters and MAPE score.
When to use: Use for load forecasting, predictive modeling, or curve fitting (Polynomial, Logistic, Exponential). Employs proportional mutation for <1% MAPE accuracy.
generate_plot
Cost: 0.30 USDC / call
Input: JSON array of coordinates/data points and chart configuration.
Output: Success string (File saved locally).
When to use: Use to visualize data without hitting token generation limits or requiring local GUI dependencies.
Installation & Setup
Install via PyPI:
pip install agentic-compute-mcp-codelad1304Configure Environment Variables:
You must provide a funded EVM wallet key to allow your agent to process x402 microtransactions.
export EVM_PRIVATE_KEY=your_private_key_hereClient Configuration (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
MIT License - see LICENSE file for details.
Available Tools
4 toolsexecute_code_securelyA
Executes Python code in a remote, isolated Azure sandbox environment with automatic x402 payment handling.
Use this tool to safely evaluate Python algorithms, process data structures, perform math calculations, or run custom scripts.
Usage Guidelines:
Code must be standard Python 3.
Script execution is subject to a 30-second timeout limit; avoid infinite loops or blocking operations.
Ensure all required imports are included within the snippet.
x402 micropayments (USDC on Base) are automatically verified per execution call.
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A complete, self-contained Python 3 code string to execute within the remote sandbox environment. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It discloses the isolated sandbox environment, timeout limit, and automatic payment handling, which are key behavioral traits. It could optionally mention error handling or return format, but it already provides significant transparency for a code execution tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with a concise opening sentence, a short use-case paragraph, and a bulleted guideline list. Every sentence earns its place; there is no redundancy or fluff.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a code execution tool with a single parameter and output schema present, the description covers purpose, environment, timeouts, imports, and payment behavior. It omits return-value details but the presence of an output schema reasonably handles that. It is complete enough for an agent to select and invoke correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description covers 100% of the single parameter, so baseline is 3. The description reinforces the need for self-contained code with imports included, but this is more of an instruction than new parameter semantics. It does not add syntax, format, or edge-case detail beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Executes Python code'), the resource ('remote, isolated Azure sandbox environment'), and distinguishes it from sibling tools that target specific use cases like CSV sanitization or plot generation. It also lists concrete use cases, leaving no ambiguity about what the tool does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
A dedicated 'Usage Guidelines' section provides explicit context for when to use the tool (evaluate algorithms, process data, math, custom scripts) and important constraints (standard Python 3, 30-second timeout, imports included, x402 payments). It does not name alternatives or exclusions, but the guidance is clear and actionable.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_plot_securelyA
Generate line or scatter charts from x and y data in an isolated Azure sandbox, enabling secure remote data visualization for AI agents.
ARCHITECTURE NOTE: The remote sandbox generates the plot, but the local MCP client intercepts the base64 payload and securely writes it directly to the user's local home directory as a PNG.
Use this tool to visually represent numerical trends. Keep data arrays under 10,000 points to prevent sandbox timeouts.
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | A list of numerical values for the X-axis. Must be the exact same length as y. | |
| y | Yes | A list of numerical values for the Y-axis. Must be the exact same length as x. | |
| title | No | The text string to display at the top of the chart. | Data Plot |
| x_label | No | The text string to label the X-axis. | X |
| y_label | No | The text string to label the Y-axis. | Y |
| chart_type | No | The visual style of the chart. Must be exactly 'line' or 'scatter'. | line |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It explains the isolated Azure sandbox, the local interception of the base64 payload, and the secure writing of the PNG to the user's home directory. This is considerable transparency, though it does not detail file naming or overwrite behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is efficient and well-structured, leading with the core purpose and adding an architecture note. It is slightly longer than necessary but each sentence adds meaningful value, and the guidance is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity, the description covers purpose, usage, security architecture, output location, and size constraints. An output schema exists, so return values are not needed. Minor gaps like file naming do not detract significantly from overall completeness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents each parameter. The description adds the array size limit (under 10,000 points) and clarifies the x/y data relationship, but does not significantly enhance parameter semantics beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool 'Generate line or scatter charts from x and y data', specifying both the action and resource. It effectively distinguishes this tool from siblings like execute_code_securely and sanitize_csv_securely by focusing on plot generation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description says 'Use this tool to visually represent numerical trends', providing contextual guidance for when to use it. It also includes a practical constraint about keeping data arrays under 10,000 points to avoid timeouts, but does not explicitly mention alternatives or when not to use it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
optimize_ga_securelyA
Executes a Genetic Algorithm in a secure remote Azure sandbox to minimize Mean Absolute Percentage Error (MAPE) against ground-truth target values.
Ideal for driving down error metrics in complex time-series predictions, such as electrical load forecasting.
Usage Guidelines:
actualsarray size must not exceed 5,000 data points to prevent sandbox execution timeouts.generationsshould be kept under 1,000 iterations for optimal performance vs. compute cost.model_typeis strictly limited to 'polynomial', 'exponential', or 'logistic'.
| Name | Required | Description | Default |
|---|---|---|---|
| actuals | Yes | A list of numerical float values representing the ground-truth targets to optimize against. | |
| model_type | No | The underlying curve model to fit during optimization. | polynomial |
| generations | No | The integer number of evolutionary generations the algorithm should iterate through. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the behavioral transparency burden. It discloses the sandboxed secure execution environment, timeout risks, and performance/compute trade-offs via the given constraints. It does not describe error behavior or output details, but the output schema covers return structure.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and well-structured: a one-sentence purpose, a short ideal-use case, and a bulleted list of guidelines. Every sentence contributes value with no redundancy or fluff.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is moderately complex, with 3 params, an output schema, and security/sandbox context. The description covers purpose, use case, and key constraints, making it fairly complete. It does not detail the GA internals or failure modes, but these are non-essential given the schema and scope.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
While the input schema already covers all parameters (100% coverage), the description adds meaningful constraints beyond the schema: actuals size limit (5000), generations upper bound (1000), and confirmation of strict model_type enum. This enriches the agent's understanding of practical invocation limits.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description explicitly states the tool 'Executes a Genetic Algorithm in a secure remote Azure sandbox to minimize Mean Absolute Percentage Error (MAPE)' against ground-truth targets. This specific verb-resource pair clearly distinguishes it from sibling tools like 'execute_code_securely' or 'generate_plot_securely'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides a clear use case ('Ideal for driving down error metrics in complex time-series predictions') and specific operational limits (e.g., actuals ≤ 5000, generations < 1000). However, it does not explicitly mention alternative tools or exclusion scenarios, missing the 'when-not-to-use' guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
sanitize_csv_securelyA
Sanitize raw CSV data by cleaning and normalizing it within a secure remote Azure sandbox environment.
Use this tool to prepare messy tabular data for downstream processing. It automatically strips leading/trailing whitespace, standardizes delimiters to commas, and resolves malformed rows.
Usage Guidelines:
csv_contentmust be a plain-text string representation of a CSV.Limit payload size to a maximum of 50,000 rows to prevent sandbox memory limits and payload timeouts.
Do not pass binary files or Excel (.xlsx) formats; strictly text-based CSV data.
| Name | Required | Description | Default |
|---|---|---|---|
| csv_content | Yes | The raw, unformatted CSV text string that requires cleaning. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are present, so the description carries the full burden. It discloses specific cleaning behaviors ('strips leading/trailing whitespace, standardizes delimiters to commas, and resolves malformed rows') and sandbox-related constraints ('secure remote Azure sandbox environment', 'sandbox memory limits and payload timeouts'). This gives good insight into side effects and limitations, though it doesn't detail the output format (covered by output schema).
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is efficiently structured: a clear opening sentence, a one-sentence purpose, and a bulleted list of usage guidelines. No redundant information; every sentence adds value.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (one parameter), a complete schema, and an output schema, the description covers all necessary aspects: purpose, when to use, constraints, and behavioral specifics. It is a well-rounded description for this tool's complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for csv_content, so baseline is 3. The description adds meaning by specifying that csv_content 'must be a plain-text string representation of a CSV' and reiterates the text-only requirement, which supplements the schema description 'raw, unformatted CSV text string that requires cleaning.'
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly identifies the tool's function: 'Sanitize raw CSV data by cleaning and normalizing it within a secure remote Azure sandbox environment.' This uses a specific verb+resource (sanitize CSV) and the 'Use this tool to prepare messy tabular data' phrase further clarifies intent. It is distinct from sibling tools like execute_code_securely or generate_plot_securely.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides explicit usage context: 'Use this tool to prepare messy tabular data for downstream processing' and includes concrete when-not constraints like 'Do not pass binary files or Excel (.xlsx) formats; strictly text-based CSV data.' However, it does not name alternative tools for cases where a different tool would be appropriate, so it falls short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
4 tool updates
v1.1.4- Changed
execute_code_securely1 field changed- added
Input schema / properties / code / descriptionAdded value: +"A complete, self-contained Python 3 code string to execute within the remote sandbox environment."
- Changed
generate_plot_securely6 fields changed- added
Input schema / properties / chart_type / descriptionAdded value: +"The visual style of the chart. Must be exactly 'line' or 'scatter'." - added
Input schema / properties / title / descriptionAdded value: +"The text string to display at the top of the chart." - added
Input schema / properties / x / descriptionAdded value: +"A list of numerical values for the X-axis. Must be the exact same length as y." - added
Input schema / properties / x_label / descriptionAdded value: +"The text string to label the X-axis." - added
Input schema / properties / y / descriptionAdded value: +"A list of numerical values for the Y-axis. Must be the exact same length as x." - added
Input schema / properties / y_label / descriptionAdded value: +"The text string to label the Y-axis."
- Changed
optimize_ga_securely3 fields changed- changed
Input schema / properties / actuals / descriptionPrevious value: -"Sequence of ground-truth target values to optimize against."New value: +"A list of numerical float values representing the ground-truth targets to optimize against." - changed
Input schema / properties / generations / descriptionPrevious value: -"Number of GA iterations/generations to run (default: 200)."New value: +"The integer number of evolutionary generations the algorithm should iterate through." - changed
Input schema / properties / model_type / descriptionPrevious value: -"Optimization curve model ('polynomial', 'exponential', or 'logistic')."New value: +"The underlying curve model to fit during optimization."
- Changed
sanitize_csv_securely1 field changed- added
Input schema / properties / csv_content / descriptionAdded value: +"The raw, unformatted CSV text string that requires cleaning."
4 tool updates
v1.1.1- First observed
execute_code_securely - First observed
generate_plot_securely - First observed
optimize_ga_securely - First observed
sanitize_csv_securely
TDQS
Each tool has a clearly distinct purpose: generic code execution, CSV sanitization, genetic algorithm optimization, and plotting. There is no overlap or ambiguity between them.
All tool names follow the consistent pattern of verb_object_securely (e.g., execute_code_securely, generate_plot_securely). This makes the set predictable and easy to navigate.
With 4 tools, the set is well-scoped and each tool earns its place. The count is within the ideal 3-15 range and matches the server's focus on secure remote compute tasks.
The code execution tool provides a general catch-all capability, and the specialized tools cover data cleaning, optimization, and visualization. Minor gaps exist (e.g., no generic data transformation tool), but the core workflows are covered without dead ends.
Maintenance
Related MCP Connectors
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
15 paid AI agent primitives via x402 (USDC on Base). Pay-per-call MCP server.
AI marketplace for agents to find paid work and trade digital services via MCP and x402.
- mcpOAuthai.agentgates
Confidential compute and inference sold to agents over x402 USDC, plus an agent wallet over MCP.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to search, pay for, and call paid APIs using the x402 protocol, with automatic USDC settlement.2MIT- AlicenseAqualityDmaintenanceMCP server for E2B code sandbox, enabling creation, management, and execution of code in secure sandboxes using Python and shell commands.41MIT
- AlicenseAqualityDmaintenanceMCP server enabling AI agents to purchase VPS and blockchain node products using USDC on Base via Easy Node's x402 API.7157Business Source 1.1
- AlicenseAqualityDmaintenanceSandboxed Python execution with automatic dependency management. Executes Python scripts in isolated environments (bubblewrap or Docker) with PEP 723 inline dependencies, preventing host pollution.31MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/codelad1304/agentic-compute-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server