This guide covers setting up the GitHub MCP Server in Google's Antigravity IDE.
- Antigravity IDE installed (latest version)
- GitHub Personal Access Token with appropriate scopes
Uses GitHub's hosted server at https://api.githubcopilot.com/mcp/.
Note
We recommend this manual configuration method because the "official" installation via the Antigravity MCP Store currently has known issues (often resulting in Docker errors). This direct remote connection is more reliable.
- Open Antigravity
- Click the "..." (Additional Options) menu in the Agent panel
- Select "MCP Servers"
- Click "Manage MCP Servers"
- Click "View raw config"
This will open your mcp_config.json file at:
- Windows:
C:\Users\<USERNAME>\.gemini\antigravity\mcp_config.json - macOS/Linux:
~/.gemini/antigravity/mcp_config.json
Add the following to your mcp_config.json:
{
"mcpServers": {
"github": {
"serverUrl": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}Important: Note that Antigravity uses serverUrl instead of url for HTTP-based MCP servers.
Replace YOUR_GITHUB_PAT with your actual GitHub Personal Access Token.
Create a token here: https://github.com/settings/tokens
Recommended scopes:
repo- Full control of private repositoriesread:org- Read org and team membershipread:user- Read user profile data
Close and reopen Antigravity for the changes to take effect.
- Open the MCP Servers panel (... menu → MCP Servers)
- You should see "github" with a list of available tools
- You can now use GitHub tools in your conversations
Note
The status indicator in the MCP Servers panel might not immediately turn green in some versions, but the tools will still function if configured correctly.
If you prefer running the server locally with Docker:
{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PAT"
}
}
}
}Requirements:
- Docker Desktop installed and running
- Docker must be in your system PATH
Make sure you're using serverUrl (not url) for the remote server configuration. Antigravity requires serverUrl for HTTP-based MCP servers.
- Verify JSON syntax in your config file
- Check that your PAT hasn't expired
- Restart Antigravity completely
- Ensure your PAT has the correct scopes
- Check the MCP Servers panel for error messages
- Verify internet connection for remote server
Once installed, you'll have access to tools like:
create_repository- Create new GitHub repositoriespush_files- Push files to repositoriessearch_repositories- Search for repositoriescreate_or_update_file- Manage file contentget_file_contents- Read file content- And many more...
For a complete list of available tools and features, see the main README.
- Configuration key: Antigravity uses
serverUrlinstead ofurlfor HTTP servers - Config location:
.gemini/antigravity/mcp_config.jsoninstead of.cursor/mcp.json - Tool limits: Antigravity recommends keeping total enabled tools under 50 for optimal performance
- Explore the Server Configuration Guide for advanced options
- Check out toolsets documentation to customize available tools
- See the Remote Server Documentation for more details