Back to Home
archetana icon

pysr-mcp-server

Verified Safe

by archetana

Overview

Discovering interpretable mathematical equations from data using symbolic regression for scientific discovery, feature engineering, and data modeling.

Installation

Run Command
claude mcp add pysr npx @neural-symphony/pysr-mcp-server

Environment Variables

  • PYTHON_PATH
  • PYSR_PYTHON
  • DATABASE_URL
  • SECRET_KEY
  • ALGORITHM
  • ACCESS_TOKEN_EXPIRE_MINUTES
  • UPLOAD_DIR
  • MAX_FILE_SIZE
  • MCP_SERVER_URL

Security Notes

The server uses Python's `pickle` module for saving and loading PySR models. `pickle` is known to be insecure against maliciously constructed data, which could lead to arbitrary code execution if a loaded model file is untrusted or tampered with. While the server generates these files internally, a compromised file system could exploit this. The Node.js wrapper utilizes `child_process.spawn` to execute Python scripts, but input sanitization and path management appear to be handled carefully by internal logic, reducing direct command injection risk. For other components in the repository (like `app_server.py`, which is not the MCP server itself), a hardcoded fallback `SECRET_KEY` poses a critical vulnerability if deployed in production without modification.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassHigh
Avg Tokens500
Stars0
Forks1
Last Update2025-11-25

Tags

Symbolic RegressionEquation DiscoveryAI/MLScientific ComputingModel Context Protocol