Antigravity MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Antigravity MCP ServerSearch the web for the latest news on AI"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Antigravity MCP Server
このプロジェクトは、GoogleのAIエージェント実行基盤である Google Antigravity CLI (agy) を、Model Context Protocol (MCP) を介して Gemini Spark などの外部エージェントから操作できるようにするためのMCPサーバー実装です。
概要
特徴
サブスクリプションの利用: ローカル環境でOAuthログインされた
agyの認証情報をバックグラウンドプロセスとして透過的に利用するため、Google AI Ultra / Gemini Advanced サブスクリプションの高クォータで動作します。デフォルト自動起動: MCPサーバーの起動時、ライフサイクルハンドラ(
lifespan)によってデフォルトのagyプロセスがバックグラウンドで自動起動され、即座に対話可能な状態になります。マルチモーダル対応: メディアデータ(画像、音声、PDF、動画など)をBase64で受け取り、作業ディレクトリ内の
mcp_dataフォルダに自動デコード・保存し、その絶対パス情報をプロンプトに付与してagyに分析させることができます。
Related MCP server: gemini_mcp
提供するMCPツール一覧
本MCPサーバー (server.py) は、以下のツールをクライアントに公開します。
send_message(マルチモーダル対応)指定したセッション(またはデフォルトセッション)にメッセージを送信します。
すでに
agyプロセスがバックグラウンドで実行中の場合は標準入力(stdin)に追記し、停止している場合は新しくプロセスを起動します。引数:
text(str, 任意): 送信するテキストプロンプト。media(list of dict, 任意): メディアファイルのリスト。各要素は{"data": "<Base64文字列>", "mime_type": "mime/type", "filename": "filename.ext"}。conversation_id(str, 任意): 対象セッションのUUID。指定しない場合はサーバー起動時に自動生成されたデフォルトセッションIDが使用されます。dangerously_skip_permissions(bool, 任意, デフォルト:False): コマンド実行等の確認プロンプトを自動承認するかどうか。
get_agy_statusセッションプロセスの稼働状態(PID、終了コード)と、蓄積されたリアルタイムログを取得します。
引数:
conversation_id(str, 任意): 取得対象のセッションID。省略時はデフォルトセッション。
send_input_to_stdin動作中の
agyプロセスの標準入力(stdin)に生の文字列(例: 実行承認のy\n)を直接送信します。引数:
conversation_id(str, 任意): セッションID。省略時はデフォルトセッション。input_text(str, 必須): 送信する文字列(改行\nを含む)。
stop_agy_session実行中の
agyプロセスを安全に終了、または強制終了します。引数:
conversation_id(str, 任意): セッションID。省略時はデフォルトセッション。
list_active_sessions現在起動しているすべての
agyセッション(PIDやステータス)およびデフォルトセッションのUUID一覧を返します。
セットアップと実行方法
1. 依存ライブラリのインストール
# 仮想環境の有効化
.venv\Scripts\activate
# インストール
pip install -r requirements.txt2. サーバーの起動
mcp dev server.py起動すると、ターミナルに以下のようなインスペクターURLが表示され、デフォルトの agy プロセスがPIDと共に自動起動します:
🚀 MCP Inspector is up and running at: http://localhost:...
マルチモーダルの連携例
クライアントが send_message ツールを通じてメディアを送信すると、サーバーは C:\Users\admin\MyProject\Antigravity_MCP\mcp_data に保存し、以下のような参照形式を自動的にプロンプトに付与して agy に引き渡します:
(テキストメッセージ)
[Attached Media Files]
- Path: C:/Users/admin/MyProject/Antigravity_MCP/mcp_data/screenshot.png (MIME: image/png)これを受けた agy は、自身の持つファイル閲覧ツール等を用いて自動的に画像を開き、内容の理解や分析を行います。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ayato964/Antigravity_MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server