STK-MCP is a server implementation of the Model Context Protocol (MCP) that enables interaction with Ansys/AGI STK (Systems Tool Kit) through MCP clients or language models. It bridges natural language or programmatic commands with STK's powerful mission engineering simulation capabilities, allowing you to control STK Desktop through a standardized protocol.
agi.stk12
Python wheel must be installed:
agi.stk12-py3-none-any.whl
) in your STK installation directory (typically under CodeSamples\Automation\Python
)uv pip install path/to/agi.stk12-py3-none-any.whl
Clone the repository:
git clone <repository-url>
cd stk-mcp
Install project dependencies:
uv sync
Ensure STK Desktop is closed (the server will launch its own instance)
Start the server in development mode:
python scripts/run_dev.py
Or alternatively:
mcp dev src/stk_mcp/server.py
Verify operation:
To stop the server: Press Ctrl+C
in the terminal where it's running
http://127.0.0.1:8765
)Creates or reconfigures an STK scenario (closes any existing scenario first).
Parameters:
scenario_name
(string, default: "MCP_STK_Scenario"): Name for the scenariostart_time
(string, default: "20 Jan 2020 17:00:00.000"): Scenario start timeduration_hours
(float, default: 48.0): Duration of the scenario in hoursExample usage:
{
"scenario_name": "Earth_Observation_Mission",
"start_time": "1 Jun 2023 12:00:00.000",
"duration_hours": 72.0
}
Creates or modifies a satellite in the active STK scenario.
Parameters:
name
(string): Name of the satelliteapogee_alt_km
(float): Apogee altitude in kilometersperigee_alt_km
(float): Perigee altitude in kilometersraan_deg
(float): Right Ascension of the Ascending Node in degreesinclination_deg
(float): Orbital inclination in degreesExample usage:
{
"name": "Earth_Observer_1",
"apogee_alt_km": 705.0,
"perigee_alt_km": 695.0,
"raan_deg": 98.2,
"inclination_deg": 98.6
}
setup_scenario
toolcreate_satellite
toolThere are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.