How to Configure MCP Servers in Google Antigravity CLI and Claude Code
Model Context Protocol (MCP) allows local AI agents like Google Antigravity CLI and Claude Code to securely read databases, search GitHub issues, query web APIs, and execute local tools through a standardized open standard.
Locating the Config File
For Antigravity, open ~/.antigravity/settings.json. For Claude Code, configuration is handled inside ~/.claude.json or via the 'claude mcp add' command.
Adding a PostgreSQL or Supabase MCP Server: Add an entry under the 'mcpServers' object pointing to the official postgres MCP runner: specify the command 'npx -y @modelcontextprotocol/server-postgres' and supply your connection string as an environment variable.
Adding GitHub MCP
Use '@modelcontextprotocol/server-github' with a personal access token so your agent can inspect pull requests, read closed issues, and push branches directly.
Testing the Connection
Run 'agy mcp list' or 'claude mcp list' to confirm all registered servers show green status indicators.
Security Precaution
Never store live production write credentials in your local MCP config. Use a read-only replica or staging database credential to prevent unintended data wipes.
RunAnAi Takeaway
With MCP configured, your coding agent goes from simply writing code snippets to querying your real database schemas and resolving actual GitHub issues without manual copy-pasting.
Related Questions & User Queries
- • How to connect Model Context Protocol MCP to Antigravity
- • Claude Code MCP servers configuration guide
- • Connect Supabase and GitHub MCP to local AI agents
- • How to edit settings.json for MCP server tools