
Mathematical Code Execution
ai.saifsPublished by saifs.aiOfficial publisherv1.0.1Updated Oct 30, 2026
Run sandboxed Python for calculations and PDFs; no other languages, installs or network.
The publisher's own server: Customer Intelligence & Segmentation
Overview
Remote MCP server that runs allow-listed Python in a sandbox so an assistant can compute results or produce a one-page PDF.
- What you can do
- Run Python snippets and get back stdout, stderr and exit code
- Compute with numpy for calculations such as means, standard deviations and matrix products
- Generate a one-page PDF with the preinstalled fpdf library and receive a temporary download link
- Reject non-Python code with a one-line warning
- When to use it
- Useful when an assistant needs to actually execute arithmetic, statistics or numpy work instead of estimating, or to hand back a small generated PDF such as an invoice summary. It is not meant for other languages, package installs, network access or reading user files.
- Requirements
- Remote Streamable HTTP endpoint; nothing to install locally. OAuth 2.1 sign-in (PKCE with dynamic client registration) is required, and the client opens a sign-in page on first use. Configure the endpoint URL in an MCP-capable client such as VS Code, Claude or Claude Code.
Installation
In SourceWeft
- Open Mathematical Code Execution in the dashboard and add it to a workspace.
- Connect the required credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/ai.saifs%2Fcode-execution/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.
{
"mcpServers": {
"mathematical-code-execution": {
"type": "http",
"url": "https://code-execution-mcp.saifs.ai/mcp"
}
}
}README
Mathematical Code Execution
A Python-only sandbox for agent hosts. The model writes Python that prints a result (or a one-page PDF via preinstalled fpdf); this server runs it in an isolated process with no network, no user filesystem and no package installs. Other languages are refused. numpy is available; scipy and pandas are not.
Install
VS Code / GitHub Copilot
Add to .vscode/mcp.json (workspace) or your user mcp.json:
Then start the server from the MCP view and sign in when prompted.
Claude (claude.ai, Desktop)
Settings → Connectors → Add custom connector, and paste:
Claude Code
Any other MCP client
Point it at https://code-execution-mcp.saifs.ai/mcp using the Streamable HTTP transport. The server returns 401 with a
WWW-Authenticate: Bearer … resource_metadata=… challenge, so OAuth-aware clients sign in automatically.
Tools
Example prompts
- “Run Python to compute the mean and standard deviation of this list and print the result.”
- “Write a short numpy snippet that multiplies these two matrices and prints the product.”
- “Generate a one-page PDF invoice summary with fpdf and give me the download link.”
Support
- Website: https://saifs.ai
- Issues: https://github.com/Saify-Technologies/saifs-ai-mcps-docs/issues
- Privacy: https://saifs.ai/privacy_policy
Source: servers/code-execution/README.md at commit f5c0037
Tools
0Version history
2- v1.0.1LatestOct 29, 2026
- v1.0.0Oct 22, 2026
Score
85% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Saifs integrations

Customer Intelligence & Segmentation
ai.saifsOfficial publisher
Remote MCP server that tiers a customer book into A/B/C/D segments from purchase history and builds a sales call list.

Dynamic Pricing & Overbooking
ai.saifsOfficial publisher
Remote MCP server that gives an assistant revenue-management math: recommended prices, protection levels, overbooking limits and booking-pace alerts.

Statistical Process Control & Anomaly Alerts
ai.saifsOfficial publisher
Remote MCP server that applies statistical process control charts to metric streams and alerts only on genuine out-of-control drift.

Payment Reconciliation & Matching
ai.saifsOfficial publisher
Remote MCP server that matches bank receipts, bank lines and GST 2B rows to open invoices and the ledger, with confidence scores and an exceptions queue.

Optimization Solver (LP / MIP Scheduling)
ai.saifsOfficial publisher
Remote MCP server that solves linear and mixed-integer optimization problems, returning optimal plans, shadow prices and infeasibility diagnostics.