
<div align="center">
<h1 align="center">
OR-LLM-Agent: Automating Modeling and Solving of Operations Research Optimization Problem with Reasoning Large Language Model
</h1>
</div>


<br>

## Set up MCP Server & Client

We also add a Model Context Protocol(MCP) server to facilitate the utilization of this tool. According to the official document from claude MCP website, we recommend using the `uv` package manager to set up the MCP server.

```bash
# Create virtual environment and activate it
uv venv
source .venv/bin/activate

#install package
uv add -r requirements.txt
```

For using in the MCP client, here we use the Claude desktop Client as an example, first you need to add MCP path to the `claude_desktop_config.json`:

```python
{
    "mcpServers": {
        "Optimization": {
            "command": "/{ABSOLUTE PATH TO UV INSTALLED FOLDER}/uv",
            "args": [
                "--directory",
                "/{ABSOLUTE PATH TO OR-LLM-AGENT FOLDER}",
                "run",
                "mcp_server.py.py"
            ]
        }
    }
}
```

Then you can open the Claude desktop Client, check if there is a `get_operation_research_problem_answer` in the hammer icon.	

<img src="../assets/mcp_client.png" alt="mcp_client" width="1000" height="auto" div align=center>

<br><br>