Genexus MCP
About
GeneXus 18 MCP server for Claude, Cursor, and AI agents — read, edit, analyze KB objects (transactions, web panels, procedures, SDTs) over the Model Context Protocol.
Details
- Author
- lennix1337
- Categories
- Developer Tools, Knowledge Base
Jump to
Setup
Install Genexus MCP in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/lennix1337/Genexus18MCP
Follow the installation instructions in the repository README, then restart your MCP client.
GeneXus MCP Server — GeneXus 18 for Claude, Cursor, and AI Agents
¿Hablás español?→Guía de inicio en españolFala português?→Guia de início em portuguêsStuck?→Troubleshooting guide
GeneXus MCP Serverlets AI agents — Claude Desktop, Claude Code, Cursor, Antigravity, and any MCP-compatible client — read, edit, analyze, and refactor objects inside a GeneXus 18 Knowledge Base. It talks to thenative GeneXus SDK, so the agent works with therealKB, not a copy or a parsed approximation.
In practice: you point the MCP at your KB, then ask your AI assistant things like"list all transactions with attribute CustomerId","add a rule to the Order transaction that validates the total", or"refactor this procedure to use the new SDT"— and it does it.
A quick map of what the agent can do against your real KB through the49 tools(details inTool Surface):
It works through thenative GeneXus SDK— the same code paths the IDE uses — so edits are real and validated, not text hacks on KB files.
- ✅Windows(GeneXus is Windows-only)
- ✅GeneXus 18installed locally (default path:C:\Program Files (x86)\GeneXus\GeneXus18)
- ✅A GeneXus 18 Knowledge Baseopened at least once in the IDE (so it's initialized)
- ✅Node.js 18+— check withnode --versionin a terminal; install fromnodejs.orgif missing
- ✅An MCP-compatible AI client—Claude Desktop,Claude Code, Cursor, Antigravity, etc.
You donotneed to clone this repo or install anything globally —npxhandles it.
Never used a terminal before?PressWin+R, typepowershell, hit Enter. That's your terminal.
Before running the installer, note these down:
- GeneXus install folder— whereGeneXus.exelives. UsuallyC:\Program Files (x86)\GeneXus\GeneXus18.
- Your KB folder— the root folder of your Knowledge Base (contains the.gxfile and subfolders likeModel/,WebSpa/).
Not sure where your KB lives? Open it in GeneXus and check the title bar, or look inFile → Recent.
Open a terminal and run, replacing the paths withyourKB folder andyourGeneXus install:
npx genexus-mcp@latest init --kb "C:\KBs\YourKB" --gx "C:\Program Files (x86)\GeneXus\GeneXus18"
Prefer the wizard? Runnpx genexus-mcp@latest init --interactiveand answer the prompts.
What you'll see (takes ~30 seconds first time, faster on re-runs):
- npxdownloads the package.
- The installer verifies the paths exist and GeneXus is present.
- Itauto-detectswhich AI clients you have installed and adds the MCP config to each one.
- Prints a JSON snippet at the end — keep it in case you need to configure a client manually.
- Finishes with🎉 You are all set!.
Step 2 — Register the MCP in your AI client
Step 1 auto-registers every supported client it detects, including Claude Desktop, Claude Code, Cursor, Antigravity, Gemini CLI, OpenCode, Codex CLI, and VS Code. If yours wasn't detected, copy the JSON snippet from Step 1 into your client's MCP config manually. See theclient setup guideif unsure where that file lives.
Step 3 — Restart your AI client, then test
This part trips most people:fully closeyour AI client and reopen it. Not just the window — the whole process.
- Claude Desktop: right-click the system-tray icon →Quit. Then launch it again. (Closing the window is not enough.)
- Claude Code: end the session and start a fresh one.
- Cursor / Antigravity: close all windows and reopen.
- OpenCode: fully quit and reopen it so it reloadsopencode.json/opencode.jsonc.
- Gemini CLI / Codex CLI: start a new process or session.
"Using the GeneXus MCP, list the first 5 objects in my KB and show name + type."
- The AI invokes thegenexus_list_objectstool (some UIs show "calling tool…").
- A few seconds later, you get a list of objects from your KB.
If you get a list back —you're done. Skip toWhat can I ask the AI?for ideas.
If the AI says it doesn't have a GeneXus tool, or nothing happens, go to[Troubleshooting— most issues are covered there.
If you'd rather not run anything in the terminal yourself, paste this into your AI chat:
Please configure the GeneXus MCP server. Runnpx genexus-mcp@latest init --kb "<MY_KB_PATH>" --gx "<MY_GENEXUS_PATH>"in the terminal. If I haven't told you my GeneXus path and KB path yet, ask me first. Once it succeeds, read the JSON block it printed and add it to my MCP client config. Tell me when I should restart the client to start using GeneXus tools.
Replace the placeholders or let the AI ask you for them.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





