Pyomo
FreeNot checkedMCP server for the Pyomo optimization modeling library with tools for model inspection, solver management, and expression evaluation.
About
MCP server for the Pyomo optimization modeling library with tools for model inspection, solver management, and expression evaluation.
README
pyomo-mcp is an MCP server for working with the Pyomo optimization library. It ships with the vendored Pyomo docs from ./pyomo-data/OnlineDocs, exposes a persistent Pyomo execution session, and adds inspection and solver-oriented tooling for LLM workflows.
Features
- Search and read vendored Pyomo docs and example files.
- Execute Pyomo code with
pyomo.environpreloaded in a persistent session. - Inspect models, blocks, variables, objectives, constraints, params, sets, and expressions.
- Evaluate expressions and identify referenced Pyomo variables.
- Detect common solver interfaces and attempt solves when the runtime has solver support.
- Export models to solver formats such as LP.
- Expose MCP tools, resources, prompts, plus HTTP health/readiness routes.
Tools
list_docssearch_docsread_doc_pagelist_examplesread_example_fileexecute_pyomolist_session_objectsreset_sessioninspect_modelinspect_componentevaluate_expressionavailable_solverssolve_modelexport_model
Resources
pyomo://server/capabilitiespyomo://project/settingspyomo://docs/indexpyomo://docs/page?doc_path=...pyomo://examples/indexpyomo://examples/file?example_path=...pyomo://session/objectspyomo://reference/overview
Prompts
model a pyomo optimization problemdebug a pyomo modelchoose a pyomo solverexplain pyomo documentation
Run
uv sync
uv run python mcp_server.py --transport stdio
uv run python mcp_server.py --transport http --host 127.0.0.1 --port 8000
Health endpoints:
GET /healthzGET /readyz
Important environment variables:
PYOMO_MCP_DOCS_ROOTPYOMO_MCP_EXAMPLES_ROOTPYOMO_MCP_TRANSPORTPYOMO_MCP_HOSTPYOMO_MCP_PORT
By default the server reads docs and examples from ./pyomo-data/OnlineDocs. Override that with
PYOMO_MCP_DOCS_ROOT and PYOMO_MCP_EXAMPLES_ROOT if you keep pyomo-data elsewhere.
Testing
just test
Installing Pyomo
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/bitingsnakes/pyomo-mcpFAQ
Is Pyomo MCP free?
Yes, Pyomo MCP is free — one-click install via Unyly at no cost.
Does Pyomo need an API key?
No, Pyomo runs without API keys or environment variables.
Is Pyomo hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Pyomo in Claude Desktop, Claude Code or Cursor?
Open Pyomo on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Pyomo with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
