@ignitetech/g2-mcp
v0.1.8
Published
Smart local MCP proxy for G2 -- forwards doc/search tools to hosted server, executes export tools locally
Readme
@ignitetech/g2-mcp
AI-powered copilot for Gensym G2. Provides 25+ tools for searching G2 documentation, analyzing knowledge bases, generating G2 code, and exporting KB contents — all accessible from your AI coding assistant.
Prerequisites
- Node.js 18+
- G2 installation (required only for KB export — documentation and search tools work without G2)
- API key provided by your administrator
Setup
Add the following to your MCP client configuration (Cursor, Claude Desktop, Windsurf, etc.):
{
"mcpServers": {
"g2-mcp": {
"command": "npx",
"args": [
"@ignitetech/g2-mcp",
"https://g2mcp.ignitetech.ai/mcp/",
"--header",
"X-API-KEY:${G2_MCP_API_KEY}"
],
"env": {
"G2_MCP_API_KEY": "<your-api-key>",
"G2_ROOT": "C:\\g2-2023-64\\g2"
}
}
}
}If you only need documentation and search tools (no KB export), you can omit G2_ROOT:
{
"mcpServers": {
"g2-mcp": {
"command": "npx",
"args": [
"@ignitetech/g2-mcp",
"https://g2mcp.ignitetech.ai/mcp/",
"--header",
"X-API-KEY:${G2_MCP_API_KEY}"
],
"env": {
"G2_MCP_API_KEY": "<your-api-key>"
}
}
}
}Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| G2_MCP_API_KEY | Yes | API key for the G2 MCP server |
| G2_ROOT | For KB export | Path to your G2 installation directory (e.g., C:\g2-2023-64\g2 or /opt/g2/g2) |
What You Can Do
Once configured, ask your AI assistant to:
- Search documentation — "How do I create a rule in G2?"
- Generate G2 code — "Write a procedure that calculates average temperature"
- Analyze your KB — "Show me a summary of my knowledge base"
- Find dependencies — "What procedures does calculate-flow call?"
- Export a KB — "Export the g2-copilot knowledge base"
Troubleshooting
Tools not loading Verify your API key is correct and that the server URL in your config is reachable.
KB export not working
Ensure G2_ROOT points to your G2 installation directory and that the target KB path is correct.
Support
Contact your Gensym administrator for API keys and support.
