ampl-mcp
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., "@ampl-mcpoptimize a production schedule using AMPL"
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.
ampl-mcp
An MCP server exposing AMPL optimisation modelling to coding agents, plus a matching Claude plugin.
Requirements
An AMPL licence UUID (free community licences: https://ampl.com/ce) - optional, see below
uv/uvx
Related MCP server: agent-skill-loader
Use
The AMPL solver wheels are served from https://pypi.ampl.com, not PyPI, so
UV_INDEX must include it or resolution will fail outright. This applies
to every uv/uvx invocation of this server.
Set your licence UUID in the environment (optional - see "Licensing" below):
setx AMPLKEY_UUID "your-uuid-here" # Windows
export AMPLKEY_UUID=your-uuid-here # POSIXThen add the plugin, or run the server directly:
UV_INDEX=https://pypi.ampl.com uvx ampl-mcpNot yet published to PyPI. Until it is, uvx ampl-mcp cannot resolve this
package. Run it from a checkout instead:
UV_INDEX=https://pypi.ampl.com uvx --from . ampl-mcpand point the plugin at the same thing by changing plugin/.mcp.json's args
to ["--from", "/absolute/path/to/ampl-mcp", "ampl-mcp"].
Licensing
Without AMPLKEY_UUID the server still runs, on the wheel's shipped
size-limited demo licence - small models solve correctly; a model past the
demo's size limit fails with an error that reads like a modelling problem.
Call the ampl_version tool to see which tier is active before assuming a
failure is a modelling bug.
With AMPLKEY_UUID set, activation happens lazily on the first session and
is persisted to a durable directory so it survives across runs:
%LOCALAPPDATA%/ampl-mcp/licence on Windows,
~/.local/share/ampl-mcp/licence on POSIX (override with
AMPL_MCP_LICENCE_DIR).
Development
UV_INDEX=https://pypi.ampl.com uv run pytestTests marked licence are skipped when no AMPL engine can be constructed
(see tests/conftest.py) - AMPLKEY_UUID is not required, because the AMPL
wheel ships a size-limited demo licence that is enough to build an engine.
Set AMPL_MCP_REQUIRE_ENGINE=1 in CI to turn that skip into a hard failure.
Security note
The server blocks AMPL's shell and cd statements (in ampl_eval,
ampl_sweep's collect expressions, and in files loaded by
ampl_read_files) to prevent accidental shell/cd use. This is an
accident-preventer, not a sandbox: it is not a guarantee that shell execution
is impossible. Set AMPL_MCP_ALLOW_SHELL=1 if you need those statements.
Two things it deliberately does not stop:
Loading a file runs that file's contents unchecked.
include,commands,model,dataandloadare permitted on purpose - by project ruling, whoever approves the call owns what the loaded file does. The guard sees only the text handed to the server, so ashellinside a loaded file (or inside anything it loads in turn) will run.ampl_eval,ampl_read_filesandampl_displayreturn awarningslist when they see such a statement; they do not refuse it.AMPL expression text is not confined to the working directory. The path guard applies to this server's own path arguments. AMPL's own output redirection -
ampl_display("1 > 'C:/anywhere/file.txt'")- writes outside the session workdir, and anincludewith an absolute path reads from outside it.
Configuration
Variable | Purpose |
| AMPL licence UUID. Read from the environment only. |
| Must include |
| Override the durable licence directory. |
| Set to |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceA Model Context Protocol server that enables Claude users to access specialized OpenAI agents (web search, file search, computer actions) and a multi-agent orchestrator through the MCP protocol.Last updated410
- AlicenseAqualityBmaintenanceMCP server to dynamically load Claude Code skills into AI agentsLast updated57914MIT
- Flicense-qualityAmaintenanceMCP server that bridges coding agents (Claude Code, Codex, Gemini CLI) via ACP for pair programming, enabling agents to consult each other as tools.Last updated
- AlicenseAqualityDmaintenanceMCP server that bridges OpenAI's Agents SDK with Claude Code, enabling web search, file search, and computer use capabilities directly in your development environment.Last updated291MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
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/worc4021/ampl-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server