A TypeScript-based Model Context Protocol (MCP) server template wired into the Antigravity agentic environment. It exposes tools over a stdio transport and ships with a ready-to-import SQLite skill for local database access.
| Requirement | Version |
|---|---|
| Node.js | ≥ 18 |
| npm | ≥ 9 |
| Antigravity | latest |
antigravity-mcp-bridge/
├── src/
│ └── server.ts # MCP server — stdio transport + tools
├── skills/
│ └── sqlite_skill.json # Antigravity Global Skill definition
├── dist/ # Compiled JS output (after build)
├── auto_bridge.sh # Detects MCP configs & writes env settings
├── tsconfig.json
├── package.json
└── README.md
# Install dependencies (first time only)
npm install
# Compile TypeScript → dist/
npm run build
# Start the server
node dist/server.jsThe server writes a startup message to stderr and listens for MCP messages on stdin/stdout.
npx ts-node src/server.tsRun auto_bridge.sh once after cloning (or whenever your MCP config changes). It scans well-known config locations, detects your Node environment, and writes .env.mcp plus a descriptor into ~/.antigravity/mcp/.
chmod +x auto_bridge.sh # already done if you followed setup
./auto_bridge.sh- Open the Antigravity desktop app and navigate to the Manager View (sidebar → 🧩 Manager).
- Click Import Skill (top-right of the Skills panel).
- In the file picker, navigate to:
and select it.
/path/to/antigravity-mcp-bridge/skills/sqlite_skill.json - Antigravity will validate the skill schema and display a "SQLite Database Connector" card under the Data Sources category.
- Click Configure on the card and fill in the required field:
- SQLite Database Path — absolute path to your
.db/.sqlitefile, e.g./Users/sameer/data/myapp.db
- SQLite Database Path — absolute path to your
- Click Save & Activate. The skill is now globally available to all agents.
Tip: You can activate / deactivate the skill at any time from the Manager View without removing the import.
Antigravity ships a built-in MCP Inspector browser that lets you call tools interactively.
- Start the MCP server (see §1 above) so it is listening.
- In Antigravity, open Settings → MCP Servers and click + Add Server.
- Set:
- Transport:
stdio - Command:
node /path/to/antigravity-mcp-bridge/dist/server.js
- Transport:
- Click Connect. The status indicator should turn green.
- Navigate to Tools tab inside the MCP Inspector.
- Select the
system_statustool, leave the input blank (no parameters), and click Run. - The response pane should display a JSON payload similar to:
{ "currentTime": "2026-04-23T02:19:15.000Z", "platform": "darwin", "release": "24.4.0", "architecture": "arm64", "hostname": "MacBook-Pro", "cpus": 10, "totalMemoryMB": 16384, "freeMemoryMB": 4096, "uptime": "3h 42m", "nodeVersion": "v22.0.0" } - To test the SQLite skill, ensure the skill is imported and configured (§2), then ask an agent: "List all tables in my database." The agent will invoke
sqlite_list_tablesvia the MCP bridge automatically.
| Tool | Description |
|---|---|
system_status |
Returns current UTC time and OS details |
sqlite_query |
Execute a read-only SQL SELECT |
sqlite_execute |
Execute a write SQL statement |
sqlite_list_tables |
List all tables in the SQLite DB |
sqlite_describe_table |
Describe columns of a table |
npm run build # tsc — compile src/ → dist/
npm run dev # ts-node src/server.ts (watch mode)
npm run start # node dist/server.jsOpen src/server.ts and call server.tool(name, description, inputSchema, handler):
server.tool(
"my_new_tool",
"Does something useful.",
{ param: z.string().describe("An example parameter") },
async ({ param }) => ({
content: [{ type: "text", text: `You passed: ${param}` }],
})
);Rebuild with npm run build and reconnect in Antigravity.
MIT
Sameer Abrar, Flexcrit Inc