Home User Guide Download GitHub

Stardust Gremlin Studio User Guide

Stardust Gremlin Studio is a free, open source Gremlin IDE for Azure Cosmos DB (Gremlin API), Apache TinkerPop Gremlin Server and JanusGraph. This guide covers everything from installation to advanced features such as variables, schema discovery and the MCP server for AI assistants.

1. Installation

System requirements

  • Windows 10 or Windows 11 (x64)
  • Network access to your Gremlin endpoint (port 443 for Cosmos DB, typically 8182 for Gremlin Server)

Install from release

  1. Open the latest release on GitHub.
  2. Download the setup executable and run it.
  3. Launch Gremlin Studio from the Start menu.

Build from source

git clone https://github.com/JonasSyrstad/Stardust.Paradox.git
cd Stardust.Paradox/src/StardustGremlinStudio/Stardust.Paradox.GremlinStudio
dotnet run

Requires the .NET 10 SDK.

Updates

Gremlin Studio checks for new releases at startup. You can also click Check for Updates and then Download & Install.

2. The main window

Stardust Gremlin Studio main window
  • Connections panel (left) – saved connections organized in collapsible groups, plus snippets, variables and history.
  • Toolbar – Run, Cancel, Open and Save.
  • Query tabs – one editor per tab, each bound to a connection.
  • Results area – JSON, Table, Tree, Graph, Export, Log, Explain and Stats tabs.
  • Status bar – request charge (RU) of the last query for Cosmos DB.

On first launch a Welcome Guide walks you through the main features. Press Ctrl+Shift+P at any time to open the command palette and search for any command, or F1 for the keyboard shortcut reference.

3. Connections

Click New in the Connections panel to create a connection. Three connection types are supported:

TypeUse for
Azure Cosmos DB (Gremlin API)Cosmos DB accounts with the Gremlin API enabled
Generic Gremlin ServerApache TinkerPop Gremlin Server, JanusGraph and other Gremlin-compatible servers
Local Playground (InMemory)An in-memory graph for learning and testing, no server required

Azure Cosmos DB

  1. Select Azure Cosmos DB (Gremlin API).
  2. Paste the connection string from the Azure Portal (Cosmos DB account → Keys → Primary Connection String).
  3. Click Discover Graphs. Databases and graphs are discovered automatically.
  4. Select the database and graph, then click Next and Create.

Tip: use Clone on an existing Cosmos DB connection to quickly add another graph in the same account.

Gremlin Server / TinkerPop / JanusGraph

  1. Select Generic Gremlin Server.
  2. Enter Host, Port (usually 8182), optional Username/Password, and enable Use SSL if required.
  3. Click Next and Create.
  4. To verify connectivity, select the connection, click Edit and use Test.

Managing connections

  • Use the buttons below the list: New, Edit, Delete, Clone (Cosmos DB only), Reset (Local Playground only), Export and Import (JSON).
  • Connections are shown in collapsible groups. Right-click the list for Expand all groups / Collapse all groups.
  • Press Ctrl+L to jump to the Connections panel.

4. Local playground

The playground is a built-in, in-memory Gremlin engine (powered by Stardust.Paradox.Data.InMemory). It is perfect for learning Gremlin, prototyping queries and demos.

  1. Create a Local Playground (InMemory) connection.
  2. Choose Empty Playground, or Predefined Scenario and pick one under Select Scenario.
  3. Run queries as you would against a real server.

Bundled scenarios: BasicSocialNetwork, SimpleECommerce, OrganizationHierarchy, UserRoleManagement, GraphTraversalTest, ODataTest and SocialNetworkTest. Select the connection and click Reset to restore the original data.

The playground is in-memory only. Changes are lost when you reset or close the application.

5. Query editor

Running queries

  • Ctrl+Enter or F5 – run the whole editor.
  • Ctrl+Shift+Enter – run only the selected text.
  • Alt+Enter – run the statement under the cursor.
  • Esc – cancel a running query.

Editing assistance

  • Syntax highlighting and real-time validation for Gremlin.
  • Auto-completion of Gremlin steps with Ctrl+Space (or Ctrl+J).
  • Parameter hints with Ctrl+Shift+Space, and tooltips describing each step on hover.
  • Format long traversals with Ctrl+Shift+F.
  • Find / Replace with Ctrl+F / Ctrl+H.
  • Ctrl+/ toggles comments, Ctrl+D duplicates a line, Alt+↑/↓ moves lines.
  • Explain – the Explain tab shows a readable description of what a traversal does.

Example queries

// Count vertices by label
g.V().groupCount().by(label)

// Friends of friends
g.V().has('person','name','marko').out('knows').out('knows').dedup().values('name')

// Paths for visualization
g.V().hasLabel('person').outE().inV().path()

6. Query tabs & files

  • Ctrl+T new tab, Ctrl+W close tab, Ctrl+Tab / Ctrl+Shift+Tab switch tabs.
  • F2 renames a tab. Right-click a tab for Duplicate, Close others and Close tabs to the right.
  • Ctrl+O opens a query file (.gremlin or .txt), Ctrl+S / Ctrl+Shift+S save / save as.
  • Open tabs and window layout are restored the next time you start Gremlin Studio.

7. Result views

Gremlin query results in Stardust Gremlin Studio
ViewShortcutDescription
JSONCtrl+1Raw JSON response.
Flattened tabular view. Copy with Ctrl+C or save as CSV / Excel. Columns support any key, including e-mail addresses and keys containing ., @ or +. Hover an epoch timestamp to see it as a readable date.
TreeCtrl+3Hierarchical explorer for nested results, plus the Schema view.
GraphCtrl+4Interactive graph visualization.
ExportScenario export (see below).
LogExecuted queries with time, duration (ms), result count, RU and errors.
ExplainReadable explanation of the query.
StatsQuery statistics.
the query and its results are copied into a new tab marked with a pin, and the Table, Tree and Graph views are rebuilt, so they are kept while you continue working.

8. Graph visualization

The Graph view renders vertices and edges returned by your query.

  • Drag nodes to rearrange the layout.
  • Zoom with Ctrl+mouse wheel. Pan by dragging the background or with Shift+mouse wheel.
  • Click a vertex or edge to highlight it and show its properties.

Tip: queries that return path(), or both vertices and edges (for example g.V().outE().inV().path()), produce the richest visualizations.

9. Variables & parameters

Variable sets let you reuse values across queries and switch between environments. Manage them in the Variables panel with New, Edit and Del. The editor has Global and Connections tabs with key/value rows and a JSON preview.

Reference values in queries with ${key}, or nested values with ${path.to.value}:

g.V().has('tenant', '${tenant}')

Apply previews the variable substitution without modifying the query. Ctrl+P (Resolve) replaces parameters in the editor text with their values.

10. Snippets

Snippets are named, reusable queries that you save yourself.

  1. Write a query in the editor.
  2. Click Save current query as snippet in the editor toolbar.
  3. Enter a name in the Save as Snippet dialog.
through the MCP server.

11. Query history

Every executed query is recorded with its connection and timestamp. Select an entry and press Enter to load it into the editor. Pin queries you use often so they stay at hand.

12. Schema discovery & code export

Gremlin databases are schemaless, so Gremlin Studio samples your graph to discover its structure:

  1. Open the Tree tab and select Schema.
  2. Gremlin Studio discovers vertex and edge labels, analyzes their properties and maps how labels connect.
  3. Browse the schema, or click Generate Code to create C# entity interfaces for Stardust.Paradox, the Entity Framework-style ORM for Gremlin. Copy the code or save it to a file.
[VertexLabel("person")]
public interface IPerson : IVertex
{
    string Id { get; }
    string Name { get; set; }
    IEdgeCollection<IPerson> Knows { get; }
}

13. Scenario export

Turn real data into reproducible test fixtures:

  1. Run a query that returns vertices.
  2. Open the Export tab and enter a Scenario Name and optional Description.
  3. Choose the Export Format: Json (loadable by the InMemory scenario loader) or CSharp (code that recreates the graph; set Namespace).
  4. Click Generate Preview, then Save to File...

Edges between the exported vertices are fetched and included.

14. MCP server (AI assistants)

Gremlin Studio ships with GremlinStudioMcp.exe, a Model Context Protocol server that gives AI assistants such as GitHub Copilot access to your saved connections.

Setup

In the settings panel (Ctrl+B), use one of the MCP install buttons:

  • Install for Solution/Repo... – writes .mcp.json and .vscode/mcp.json in the selected folder.
  • Install for Visual Studio (Global) – writes %USERPROFILE%\.mcp.json.
  • Install for VS Code (Global) – adds the server under mcp.servers in VS Code settings.json.

The entry points to GremlinStudioMcp.exe in the Gremlin Studio installation folder:

{
  "servers": {
    "GremlinStudio": {
      "type": "stdio",
      "command": "<Gremlin Studio install folder>\\GremlinStudioMcp.exe"
    }
  }
}

Available tools

ToolDescription
list_connectionsList saved connections
get_connection_detailsConnection metadata (no secrets)
execute_gremlin_queryRun a Gremlin query against a saved connection
discover_graph_schemaDiscover labels, properties and relationships
export_schema_as_codeGenerate Stardust.Paradox C# entity interfaces
list_scenariosList playground scenarios
export_scenarioExport data as a JSON or C# scenario
list_snippets / get_snippetAccess saved snippets
list_query_historyRecent queries

The MCP server runs locally and uses the same encrypted credentials as the application. Be careful when allowing an AI assistant to run write queries against production graphs.

AI Gremlin assistant

Enable the opt-in AI Gremlin assistant from the account menu to get help writing queries in a side panel. The assistant uses GitHub Copilot: sign in once with the Copilot CLI (run copilot and then /login). No personal access token is needed.

15. Themes & settings

Open the settings panel with Ctrl+B.

Use Welcome Guide to replay the introduction (after an update, returning users are shown cards for the new features) and

After signing in with GitHub, you can Report an issue and view My reported issues from within the application.

16. Keyboard shortcuts

ShortcutAction
Ctrl+Enter / F5Run query
Ctrl+Shift+EnterRun selection
Alt+EnterRun current statement
EscCancel query
Ctrl+Space / Ctrl+JAuto-completion
Ctrl+Shift+SpaceParameter hints
Ctrl+Shift+FFormat query
Ctrl+F / Ctrl+HFind / Replace
Ctrl+/Toggle comment
Ctrl+DDuplicate line
Alt+↑ / ↓Move line
Ctrl+Z / Ctrl+YUndo / Redo
Ctrl+PResolve parameters
Ctrl+T / Ctrl+WNew / close tab
Ctrl+Tab / Ctrl+Shift+TabNext / previous tab
F2Rename tab
Ctrl+O / Ctrl+S / Ctrl+Shift+SOpen / Save / Save as
Ctrl+1…4JSON / Table / Tree / Graph view
Ctrl+Shift+KPin result
Ctrl+LFocus connections
Ctrl+Shift+PCommand palette
Toggle settings panel
F1Keyboard shortcut reference

17. Data & security

All settings are stored locally in %LOCALAPPDATA%\GremlinStudio\:

FileContents
connections.jsonConnection metadata (no secrets)
Secrets\Keys and passwords encrypted with Windows DPAPI (current user only)
query-history.jsonQuery history
snippets.jsonSaved snippets
variables.jsonVariable sets
session.json, window-layout.jsonOpen tabs and window layout
theme.txtSelected theme
mcp-server.logMCP server log

Credentials are stored only on your machine, encrypted for the current Windows user.

18. Troubleshooting

Cannot connect to Cosmos DB

  • Verify the account has the Gremlin API enabled and that you copied the full connection string including AccountKey.
  • Check the Cosmos DB firewall allows your IP address.
  • Outbound port 443 must be open.

Cannot connect to Gremlin Server

  • Confirm host and port (default 8182) and whether the server requires SSL.
  • Select the connection, click Edit and use Test to see the exact error.

Graph view is empty

The graph view needs vertices and/or edges. Queries returning only values (for example values('name')) are shown in the JSON and Table views. Try adding path() or returning elements.

AI assistant does not see Gremlin Studio

Re-run the MCP install, restart your editor, and check %LOCALAPPDATA%\GremlinStudio\mcp-server.log.

Still stuck?

Open an issue on GitHub.