🤖 New in SPACE GASS 14.51 — the MCP server lets your AI agent build, analyse and design your models. Get started →
SpaceGass API
Documentation

Overview

The SPACE GASS API provides programmatic access to SPACE GASS structural analysis data. Use it to open job files, read and edit structural entities, run analyses, and query results.

The API is a headless service — it runs as a local server on your machine without any program UI. There is no interaction with the SPACE GASS desktop interface. All operations are performed through HTTP requests to the local server.

What You Can Do

  • Open and manage job files — Create, open, save, and close SPACE GASS .sg project files
  • Read, write, and edit structural data — Nodes, members, sections, materials, load cases, load categories, and load case groups. Create or update many entities at once using bulk operations.
  • Run analyses — Start linear, non-linear, buckling, and dynamic frequency analyses, and monitor progress in real time
  • Query analysis results — Retrieve node displacements, reactions, member forces, buckling load factors, and more

Prerequisites

To get access to the API, follow the steps in the Quick Start. You will need:

  • SPACE GASS 14.5 or later installed on your machine
  • SPACE GASS has been opened at least once to initialize the required data files

Licensing

API access is included with Pro and above subscriptions, or available as a yearly add-on for perpetual license holders. See Licensing for details or visit spacegass.com for pricing.

Authentication

No authentication is required. The API runs locally and is accessed over plain HTTP. See Authentication for details.

SDK Clients

Generated SDK clients are available for:

  • C# — SpaceGassApi (NuGet package)
  • Python — space-gass-api (pip installable)

Both are generated from the OpenAPI specification using Microsoft Kiota. The machine-readable spec is published at api/1/schema.json if you want to generate a client for another language or feed it to an LLM.

Using with AI assistants

There are two different ways to bring an AI assistant to SPACE GASS:

Drive SPACE GASS from an assistant. Open models, edit them, run analyses and read results by talking to Claude Desktop, GitHub Copilot or another desktop MCP client — no code. Add the SPACE GASS MCP server to your AI app; it comes with SPACE GASS 14.51 and later.

Write code against the API. Building scripts with an AI coding assistant (Claude Code, Cursor, Copilot, ChatGPT)? Point it at these single, clean, machine-readable entry points instead of letting it crawl the source repo:

  • Full docs bundle for LLMs: llms-full.txt
  • OpenAPI spec (JSON): api/1/schema.json
  • Repo as a documentation-search MCP server (search docs, examples, and code with zero setup): gitmcp.io/SpaceGass/space-gass-api. This is not the SPACE GASS MCP server above — it reads this site and the SDK source; it does not control SPACE GASS.

Or paste this primer straight into your AI assistant to point it at everything in one step:

Code
You have access to the SPACE GASS structural-analysis API — a LOCAL, no-auth service at http://localhost:34560 (base path /api/v1). Load these first: - Full docs bundle: https://api.spacegass.com/docs/llms-full.txt - OpenAPI spec: https://api.spacegass.com/docs/api/1/schema.json - Repo via GitMCP: https://gitmcp.io/SpaceGass/space-gass-api - MCP server that drives SPACE GASS directly (desktop clients): https://api.spacegass.com/docs/mcp SDKs (Kiota, fluent builder chains, async): - Python: pip install space-gass-api -> from space_gass_api import SpaceGassApiClient - C#: dotnet add package SpaceGassApi Both expose SpaceGassApiClient.CreateClient() (no auth, base URL auto-set). Use raw.githubusercontent.com for repo files, never /blob/ URLs.

Next Steps

  • Quick Start — Get up and running in 5 minutes
  • Simple Beam Model — Full walkthrough building a model, running analysis, and querying results
  • API Reference — Browse all endpoints interactively
  • MCP Server — Drive SPACE GASS from Claude Desktop, GitHub Copilot and other AI desktop apps, no code required
Last modified on