AI assistants (MCP)

Quicopt runs an MCP server at https://mcp.quicopt.com. An AI assistant connected to it describes your optimization problem as Python code with Pyomo or PuLP, and Quicopt solves the model. The assistant gets back the status in plain words, a summary of the model it built and the solution in the code's own variable names, so it can check the model against your question before it reports the answer.

You need a Quicopt account. Sign up for free if you don't have one.

Connect claude.ai or ChatGPT

  1. Add a custom connector with the URL https://mcp.quicopt.com. In claude.ai, custom connectors are under Settings, Connectors. In ChatGPT they need developer mode; choose OAuth as the connector's authentication. Leave the fields for a client ID and a client secret empty: the assistant registers itself with Quicopt.
  2. Connect. Your browser opens the Quicopt sign-in page at platform.quicopt.com. Sign in with the email address and the password from your sign-up.
  3. The next page names the app that asks for access and the address it will send you back to. If both belong to the assistant you are using, allow access.
  4. Ask an optimization question, such as how to split a list of crates over three trucks so that the heaviest truck carries as little as possible.

Connect Claude Code

claude mcp add -s user --transport http quicopt https://mcp.quicopt.com

-s user makes the server available in every project; without it, Claude Code adds the server to the current directory only. Then run /mcp in Claude Code, choose quicopt and authenticate. Your browser opens the same sign-in page as above.

If you had added the server earlier with an API key in an Authorization header, reconnecting keeps that header. Remove the server, add it again as above, and restart Claude Code before you authenticate.

What the assistant gets

  • solve(code, time_limit?) runs the assistant's code, which builds a Pyomo or PuLP model and assigns it to model, and sends the model to Quicopt. The code runs in an isolated sandbox without file or network access, so all data has to be in the code.
  • get_result(job_id) fetches the result of a solve that took longer than about 50 seconds and answered with a job_id instead.
  • guide(topic) returns a short how-to with a complete example: structured (orderings such as routes and schedules, splitting items into groups, quantities that are 0 or within bounds), stochastic (uncertain data), limits (model sizes and time limits) and local (solving a model yourself with the quicopt Python package, for data in local files).

Limits

  • Size. Up to 100,000 variables for a linear model (LP or MILP), or one that uses orderings, groups or uncertain data; up to 1,000 variables for any other model, such as one with quadratic or other nonlinear terms. A model with uncertain data is solved over at most 1,000 scenarios.
  • Time. Quicopt chooses how long a solve runs unless the assistant sets time_limit, up to 120 seconds. Results are kept for 24 hours.
  • Building the model. The code must build the model within 30 seconds.
  • Rate. The server runs code at most 10 times a minute for each account; beyond that, the assistant is told how many seconds to wait.
  • Data in the chat. Every number the assistant writes into the code passes through the chat. A few hundred numbers are fine. For larger data in files, the local guide has the assistant write a script that reads the files on your computer and calls Quicopt with the Python client.

Staying connected

You sign in each time you connect; Quicopt keeps no sign-in session in your browser. Once connected, the assistant stays connected as long as it uses the connection at least once every 90 days. If it reports that the sign-in is no longer valid, reconnect and sign in again. To disconnect, remove the connector.

What the server does with your code and models is set out in section 5 of the privacy policy.