RMGS MCP Server
Provides tools for interacting with Siemens' Altair Graph Studio (AGS), enabling SPARQL query execution, ontology management, and graphmart construction.
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., "@RMGS MCP ServerList all classes in the equipment ontology"
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.
RMGS MCP Server
An MCP (Model Context Protocol) server for Altair Graph Studio (AGS) that provides intelligent SPARQL query capabilities, ontology management, and graphmart construction tools — all accessible from AI coding assistants like GitHub Copilot, Claude Code, and other MCP-compatible clients.
Features
SPARQL Query Execution — Run SPARQL queries against AGS graphmarts
Knowledge Discovery — Explore ontologies, classes, and properties
Ontology Management — Create, modify, and delete ontologies
Graphmart Construction — Build and manage transformation layers and steps
Agent Memory — Persistent and ephemeral memory for context retention
Dual Modes —
explore(read-only, 13 tools) andcreate(all 51 tools)Multiple Transports — stdio, SSE, and streamable-http
Related MCP server: Logseq MCP Server
Installation
pip install siemens-graph-studio-mcp-serverDefault setup (recommended)
Use this as the baseline setup when installing from PyPI.
Create a Python virtual environment:
python -m venv graph_mcp_envActivate the environment:
source /.../howtomcp/graph_mcp_env/bin/activateInstall from PyPI:
pip install siemens-graph-studio-mcp-serverStart MCP as two separate servers (recommended):
siemens-graph-studio-mcp-server --config ags-config.json --mode explore --transport sse --port 8000
siemens-graph-studio-mcp-server --config ags-config.json --mode create --transport sse --port 8001Note: This also installs
rdflib, which addsrdfpipeandrdfgraphisomorphismexecutables to your environment. These are standard rdflib CLI utilities and can be safely ignored.
From Source
git clone <repository-url>
cd rmgs-mcp-server
pip install -e .Quick Start
1. Create a config file
Save this as ags-config.json (e.g., in your home directory or project):
{
"servers": {
"my-server": {
"host": "your-ags-server.example.com",
"port": 443,
"username": "your-username",
"password": "${AGS_PASSWORD}",
"graphmart_uri": "http://cambridgesemantics.com/Graphmart/your-graphmart-id",
"default": true
}
}
}Security: Use
${ENV_VAR}references for passwords — they are resolved from environment variables at startup. Never commit real passwords to config files.
2. Connect your MCP client
Choose your client below.
VS Code — GitHub Copilot (Agent Mode)
Setup
Create
.vscode/mcp.jsonin your workspace:
{
"servers": {
"ags-sparql-agent": {
"type": "stdio",
"command": "siemens-graph-studio-mcp-server",
"args": ["--config", "/absolute/path/to/ags-config.json"],
"env": {
"AGS_PASSWORD": "your-password-here"
}
}
}
}Reload VS Code (
Cmd+Shift+P→ "Developer: Reload Window").Open Copilot Chat and switch to Agent mode (click the mode selector at the top of the chat panel).
The AGS tools will appear in the tool list (click the 🔧 icon to verify).
Usage
Type natural language prompts in Copilot Chat (Agent mode):
What ontologies are available in this graphmart?
Show me all classes in the equipment ontology
Run a SPARQL query to count all products
Create a new transformation layer for data linkingCopilot will automatically select and call the appropriate MCP tools.
Running from source (without pip install)
If you prefer to run directly from the cloned repo:
{
"servers": {
"ags-sparql-agent": {
"type": "stdio",
"command": "python",
"args": [
"/absolute/path/to/rmgs_mcp_server/ags_sparql_agent.py",
"--config", "/absolute/path/to/ags-config.json"
],
"env": {
"AGS_PASSWORD": "your-password-here"
}
}
}
}Claude Code
Setup
Add to your project's .mcp.json (or ~/.claude.json for global config):
{
"mcpServers": {
"ags-sparql-agent": {
"command": "siemens-graph-studio-mcp-server",
"args": ["--config", "/absolute/path/to/ags-config.json"],
"env": {
"AGS_PASSWORD": "your-password-here"
}
}
}
}Usage
In Claude Code, the MCP tools are automatically available. Use natural language:
What data is in this knowledge graph?
Show me all properties of the Customer class
Create a linking ontology between orders and productsClaude Code will call the appropriate MCP tools to interact with your AGS graphmart.
Advanced Configuration
Multiple servers
{
"servers": {
"production": {
"host": "prod-ags.example.com",
"port": 443,
"username": "your-username",
"password": "${PROD_PASSWORD}",
"graphmart_uri": "http://cambridgesemantics.com/Graphmart/prod-id",
"default": true
},
"staging": {
"host": "staging-ags.example.com",
"port": 8443,
"username": "your-username",
"password": "${STAGING_PASSWORD}"
}
}
}The server marked "default": true is automatically selected at startup. Switch at runtime using select_server and select_graphmart tools.
Agent configuration
{
"servers": { "...": "..." },
"agent_config": {
"max_iterations": 3,
"query_timeout": 30,
"cache_ontologies": true,
"ontology_cache_ttl": 86400
}
}Transport options
# SSE (default)
siemens-graph-studio-mcp-server --config ags-config.json --transport sse --port 8000
# stdio (used by VS Code and Claude Code)
siemens-graph-studio-mcp-server --config ags-config.json
# Streamable HTTP
siemens-graph-studio-mcp-server --config ags-config.json --transport streamable-http --port 8000Modes
# Explore mode — read-only tools only (safe for browsing)
siemens-graph-studio-mcp-server --config ags-config.json --mode explore
# Create mode — all tools including write operations (default)
siemens-graph-studio-mcp-server --config ags-config.json --mode createExplore mode tools (13):
list_servers, select_server, list_graphmarts, select_graphmart, execute_sparql_query, discover_knowledge_overview, discover_available_ontologies, discover_ontology_classes, discover_class_data_properties, discover_class_object_properties, list_ontology_imports, initialize_agent_memory, read_agent_memory
Create mode includes all 51 tools (explore + write operations).
Legacy: Direct
ANZO_*environment variables (without a config file) are still supported but deprecated.
Tool Categories
System & Monitoring
Tool | Description |
| Test MCP server and AGS agent status |
| Get session logs and interaction history |
| List all configured AGS servers |
| Switch to a different AGS server at runtime |
| List all graphmarts on the active server |
| Switch to a different graphmart at runtime |
SPARQL Query Execution
Tool | Description |
| Execute SPARQL directly against graphmart |
| Query graphmart metadata (local volume) |
| Update graphmart metadata with SPARQL |
Knowledge Discovery
Tool | Description |
| Get overview of available knowledge |
| List all available ontologies |
| List classes in a specific ontology |
| List data properties for a class |
| List object properties for a class |
Ontology Management
Tool | Description |
| Create a new ontology |
| Delete an ontology |
| Register ontology with graphmart |
| Load TTL files into named graphs |
| Add a class to an ontology |
| Remove a class from an ontology |
| Add a property to an ontology |
| Remove a property from an ontology |
| Add an import to an ontology |
| Remove an import from an ontology |
| List imports of an ontology |
| List classes in ontology structure |
| List properties in ontology structure |
| Get ontology cache status |
| Clear ontology caches |
| Force cache refresh |
Graphmart Construction & Management
Tool | Description |
| Create transformation layers |
| Update layer properties |
| Delete transformation layers |
| List all transformation layers |
| Add transformation steps to layers |
| Update transformation step properties |
| Delete transformation steps |
| List steps within a layer |
| Add direct data loading steps |
| Update direct load step properties |
| Add a SPARQL query bookmark to graphmart |
| Delete a single bookmark from a graphmart |
| Delete all bookmarks from a graphmart |
| Lightweight refresh of changed layers |
| Complete reprocessing of all layers |
| Comprehensive layer and step error info |
| Specific step debugging |
Agent Memory
Tool | Description |
| Initialize memory for the agent |
| Write to persistent memory |
| Write to session-scoped memory |
| Promote ephemeral to permanent memory |
| Clear agent memory |
| Read from agent memory |
Development
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest
# Build package
python -m buildBump Version
Update the version in both:
pyproject.toml→version = "x.y.z"rmgs_mcp_server/__init__.py→__version__ = "x.y.z"
Publish to PyPI
pip install build twine
python -m build
twine upload dist/*Project Structure
rmgs-mcp-server/
├── rmgs_mcp_server/ # Main package
│ ├── __init__.py # Package init with version
│ ├── ags_sparql_agent.py # MCP server entry point
│ ├── models.py # Data models
│ ├── server_registry.py # Multi-server configuration manager
│ ├── sparql_agent_core.py # Core SPARQL agent logic
│ ├── sparql_query_engine.py # SPARQL query engine
│ ├── ontology_cache.py # Ontology caching
│ ├── ontology_discovery.py # Ontology discovery
│ ├── interaction_logger.py # Logging utilities
│ ├── tools/ # MCP tool implementations
│ │ ├── base_tool.py # Base tool class
│ │ ├── system/ # System, server & graphmart tools
│ │ ├── query/ # SPARQL query tools
│ │ ├── discovery/ # Knowledge discovery tools
│ │ ├── ontology/ # Ontology management tools
│ │ ├── graphmart/ # Graphmart construction tools
│ │ └── memory/ # Agent memory tools
│ └── utils/ # Shared utilities
├── prompts/ # Agent prompt templates
├── skills/ # Best practices guides
├── pyproject.toml # Package metadata & build config
├── LICENSE # MIT License
└── README.md # This fileLicense
MIT
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.
Latest Blog Posts
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/engalar/siemens_graph_studio_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server