Antigravity GLM MCP
Provides web search capabilities via DuckDuckGo to retrieve and analyze online information.
Enables Git repository management including checking status, committing changes, viewing logs, and analyzing diffs.
Allows for the execution of Python code within a secure sandbox environment for complex tasks.
Provides a whitelist-based shell execution environment for running approved system commands safely.
Supports executing SQLite queries against local databases for structured data management.
Click on "Deploy 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 GLM MCP Refactor the login logic in auth.py and create a backup before saving"
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 GLM MCP
Gemini (Antigravity) β· GLM-4.5 λͺ¨λΈ λΈλ¦Ώμ§ MCP μλ²
볡μ‘ν μ½λ© μμ μ GLM AIμκ² μμνκ³ , 25κ°μ§ κ°λ ₯ν λκ΅¬λ‘ μλννμΈμ.
π λ¬Έμ Β· β‘ λΉ λ₯Έ μμ Β· π οΈ λꡬ Β· π‘οΈ λ³΄μ
β¨ μ μ΄ νλ‘μ νΈμΈκ°μ?
λ¬Έμ μ | ν΄κ²°μ± |
π³ 볡μ‘ν Docker μ€μ | β Zero-Docker: HTTPS μ§μ νΈμΆλ‘ μ¦μ μμ |
π API ν€ μ μΆ μ°λ € | β 보μ κ°ν: νκ²½λ³μ νν°λ§, μλλ°μ€ μ μ© |
π νμΌ μ€μ 볡ꡬ λΆκ° | β μλ λ°±μ : μμ /μμ μ λ²μ κ΄λ¦¬ |
π§ μΈμ κ° μ 보 μμ€ | β μꡬ λ©λͺ¨λ¦¬: JSON κΈ°λ° μ₯κΈ° κΈ°μ΅ μ μ₯μ |
β οΈ μνν μ λͺ λ Ή μ€ν | β νμ΄νΈλ¦¬μ€νΈ: μΉμΈλ λͺ λ Ήλ§ νμ© |
Related MCP server: DevToolkit MCP Server
ποΈ μν€ν μ²
flowchart LR
subgraph "π₯οΈ Gemini Desktop"
A[Antigravity Agent]
end
subgraph "π§ MCP Server"
B[antigravity_glm_mcp]
C[25 Tools]
D[Security Layer]
end
subgraph "βοΈ Cloud APIs"
E[GLM-4.5 API]
F[Web Search]
end
subgraph "πΎ Local Storage"
G[Files & Git]
H[Memory DB]
I[Backups]
end
A <--> |MCP Protocol| B
B --> C
C --> D
D --> E
D --> F
D --> G
D --> H
D --> Iπ λ¬Έμ
π λ¬Έμ | π μ€λͺ |
μμ€ν μ€κ³, 보μ κ³μΈ΅, ν΅μ νλ¦ μμΈ | |
25κ° λꡬ νλΌλ―Έν° λ° μλ΅ λͺ μΈ | |
5λΆ μ€μΉ κ°μ΄λ λ° μ²« μ¬μ© μμ |
β‘ λΉ λ₯Έ μμ (5λΆ)
π μ¬μ μꡬμ¬ν
Python 3.11+ (κ°μνκ²½ κΆμ₯)
Zhipu AI API ν€ λλ νΈν μλν¬μΈνΈ
π μ€μΉ λ°©λ²
# 1. μ μ₯μ ν΄λ‘
git clone https://github.com/coreline-ai/antigravity_glm_mcp.git
cd antigravity_glm_mcp
# 2. κ°μνκ²½ μμ± λ° νμ±ν
python3.11 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# 3. μλ μ€μΉ (κΆμ₯)
python scripts/install.py# μμ‘΄μ± μ€μΉ
pip install -r requirements.txt
# MCP μ€μ νμΌμ μΆκ° (~/.gemini/settings.json λ±){
"mcpServers": {
"antigravity_glm_mcp": {
"command": "/path/to/.venv/bin/python",
"args": ["/path/to/antigravity_glm_mcp/src/server.py"],
"env": {
"PROJECT_ROOT": "/your/workspace",
"ZHIPU_API_KEY": "your-api-key",
"GLM_MODEL": "GLM-4.5",
"GLM_BASE_URL": "https://api.z.ai/api/coding/paas/v4",
"PYTHONPATH": "/path/to/antigravity_glm_mcp"
}
}
}
}π οΈ μ 체 λꡬ λͺ©λ‘ (25κ°)
π§ μ§λ₯ μμ (Intelligence Delegation)
λꡬ | μ€λͺ | μ£Όμ νλΌλ―Έν° |
| GLMμ 볡μ‘ν μμ μμ |
|
| μμ ν둬ννΈ μ§μ μ μ‘ |
|
| μ΄λ―Έμ§ λΆμ (Vision) |
|
π νμΌ μμ€ν (File System)
λꡬ | μ€λͺ | μ£Όμ νλΌλ―Έν° |
| νμΌ λ΄μ© μ½κΈ° |
|
| μ νμΌ μμ± |
|
| λ¬Έμμ΄ μΉν μμ |
|
| νμΌ μμ (λ°±μ 보κ΄) |
|
| μ΄μ λ²μ 볡μ |
|
| λλ ν 리 λͺ©λ‘ |
|
| μ κ·μ νμΌ κ²μ |
|
π» μ½λ μ€ν (Code Execution)
λꡬ | μ€λͺ | μ£Όμ νλΌλ―Έν° |
| Python μλλ°μ€ μ€ν |
|
| νμ΄νΈλ¦¬μ€νΈ μ μ€ν |
|
πΏ Git νμ (Git Collaboration)
λꡬ | μ€λͺ | μ£Όμ νλΌλ―Έν° |
| μ μ₯μ μν μ‘°ν |
|
| λ³κ²½μ¬ν μ»€λ° |
|
| μ»€λ° μ΄λ ₯ μ‘°ν |
|
| λ³κ²½μ¬ν λΉκ΅ |
|
π λ€νΈμν¬ (Network)
λꡬ | μ€λͺ | μ£Όμ νλΌλ―Έν° |
| HTTP μμ² (SSRF λ°©μ§) |
|
| DuckDuckGo μΉ κ²μ |
|
π§ λ©λͺ¨λ¦¬ & λ°μ΄ν° (Memory & Data)
λꡬ | μ€λͺ | μ£Όμ νλΌλ―Έν° |
| μ₯κΈ° λ©λͺ¨λ¦¬ μ μ₯ |
|
| λ©λͺ¨λ¦¬ μ‘°ν |
|
| μ 체 λ©λͺ¨λ¦¬ λͺ©λ‘ |
|
| λ©λͺ¨λ¦¬ μμ |
|
| SQLite 쿼리 μ€ν |
|
π κ΄λ¦¬ & λ‘κΉ (Management)
λꡬ | μ€λͺ | μ£Όμ νλΌλ―Έν° |
| μμ μμ½ (Cron) |
|
| μμ΄μ νΈ νλ λ‘κ·Έ |
|
π‘οΈ λ³΄μ μν€ν μ²
μ΄ νλ‘μ νΈλ 4λ¨κ³ 보μ κ³μΈ΅μ ꡬνν©λλ€:
flowchart TB
subgraph "Layer 1: Sandbox"
A[PROJECT_ROOT κ²½λ‘ κ²μ¦]
end
subgraph "Layer 2: Network"
B[SSRF λ°©μ§ - λ΄λΆλ§ IP μ°¨λ¨]
C[DNS Rebinding λ°©μ΄]
end
subgraph "Layer 3: Execution"
D[RCE λ°©μ§ - νκ²½λ³μ νν°λ§]
E[μ νμ΄νΈλ¦¬μ€νΈ]
end
subgraph "Layer 4: Data"
F[μλ λ°±μ
]
G[API ν€ κ²©λ¦¬]
end
A --> B --> D --> Fλ³΄νΈ λμ | μν | λ°©μ΄ μ‘°μΉ |
νμΌ μμ€ν | Path Traversal |
|
λ€νΈμν¬ | SSRF 곡격 | λ΄λΆλ§ IP(10.x, 172.x, 192.168.x) νν°λ§ |
μ½λ μ€ν | RCE / ν€ μ μΆ |
|
μ λͺ λ Ή | μμ€ν νκ΄΄ |
|
glm_shell_execλ νμ΄νΈλ¦¬μ€νΈμ λ±λ‘λ μμ ν λͺ
λ Ήλ§ μ€νν©λλ€.
rm, sudo, chmod 777 λ±μ μμ² μ°¨λ¨λ©λλ€.
π§ νκ²½λ³μ μ€μ
λ³μλͺ | νμ | μ€λͺ | κΈ°λ³Έκ° |
| β | GLM API μΈμ¦ ν€ | - |
| β | μμ λμ λλ ν 리 | νμ¬ λλ ν 리 |
| β | μ¬μ©ν λͺ¨λΈ |
|
| β | API μλν¬μΈνΈ |
|
| β | μμ² νμμμ (μ΄) |
|
π νλ‘μ νΈ κ΅¬μ‘°
antigravity_glm_mcp/
βββ π README.md # μ΄ λ¬Έμ
βββ π requirements.txt # Python μμ‘΄μ±
βββ π pyproject.toml # ν¨ν€μ§ λ©νλ°μ΄ν°
β
βββ π src/ # μμ€ μ½λ
β βββ server.py # MCP μλ² μ§μ
μ
β βββ models.py # κ³΅ν΅ λͺ¨λΈ (ToolResponse λ±)
β β
β βββ π core/ # ν΅μ¬ μΈνλΌ
β β βββ config.py # μ€μ κ΄λ¦¬μ
β β βββ glm_client.py # GLM API ν΄λΌμ΄μΈνΈ
β β βββ sandbox.py # κ²½λ‘ λ³΄μ κ²μ¦
β β βββ backup.py # μλ λ°±μ
μμ€ν
β β
β βββ π tools/ # 25κ° λꡬ ꡬν
β βββ glm_cmd.py # μ§λ₯ μμ (cmd, bypass)
β βββ file_ops.py # νμΌ CRUD
β βββ dir_ops.py # λλ ν 리 μμ
β βββ grep_ops.py # νμΌ κ²μ
β βββ code_ops.py # μ½λ μ€ν
β βββ shell_ops.py # μ μ€ν
β βββ git_ops.py # Git νμ
β βββ http_ops.py # HTTP μμ²
β βββ web_ops.py # μΉ κ²μ
β βββ db_ops.py # DB 쿼리
β βββ memory_ops.py # λ©λͺ¨λ¦¬ κ΄λ¦¬
β βββ image_ops.py # μ΄λ―Έμ§ λΆμ
β βββ schedule_ops.py # μμ
μμ½
β βββ reporting.py # λ‘κ·Έ κ΄λ¦¬
β
βββ π scripts/ # μ νΈλ¦¬ν° μ€ν¬λ¦½νΈ
β βββ install.py # μλ μ€μΉ μ€ν¬λ¦½νΈ
β
βββ π docs/ # λ¬Έμ
β βββ ARCHITECTURE.md # μν€ν
μ² μμΈ
β βββ TOOLS.md # λꡬ λ νΌλ°μ€
β βββ QUICKSTART.md # λΉ λ₯Έ μμ κ°μ΄λ
β
βββ π tests/ # ν
μ€νΈ μ½λ
β βββ local_tools_test.py # λ‘컬 λꡬ ν΅ν© ν
μ€νΈ
β βββ simple_test.py # μ§λ₯ λꡬ ν
μ€νΈ
β
βββ π data/ # λ°νμ λ°μ΄ν° (Git μ μΈ)
βββ memory/ # μꡬ λ©λͺ¨λ¦¬ μ μ₯μ
βββ action_logs.jsonl # μμ΄μ νΈ νλ λ‘κ·Έπ§ͺ ν μ€νΈ
# κ°μνκ²½ νμ±ν ν
# 1. .env νμΌ μμ± (κΆμ₯)
cp .env.sample .env
# .env νμΌμ μ΄μ΄ ZHIPU_API_KEYλ₯Ό μ
λ ₯νμΈμ.
# 2. λ‘컬 λꡬ ν
μ€νΈ (API ν€ λΆνμ)
./.venv/bin/python tests/local_tools_test.py
# 3. μ§λ₯ λꡬ ν
μ€νΈ (API ν€ νμ)
# .env νμΌμ΄ μλ€λ©΄ μ§μ export νμΈμ.
export ZHIPU_API_KEY="your-key"
./.venv/bin/python tests/simple_test.pyπ λΌμ΄μ μ€
μ΄ νλ‘μ νΈλ MIT License νμ λ°°ν¬λ©λλ€. μμ λ‘κ² μ¬μ©, μμ , λ°°ν¬νμ€ μ μμ΅λλ€.
Made with β€οΈ for Gemini Γ GLM Collaboration
Available Tools
25 toolsglm_action_logC
μμ λ‘κ·Έ μ‘°ν.
Inputs: limit, offset, action_filter.
glm_bypassC
GLMμ μμ ν둬ννΈλ₯Ό μ§μ 보λ λλ€. (Raw Mode)
Inputs: prompt (required).
glm_cmdC
GLM-4-plusμ μ§λ¬Έμ μμν©λλ€. (μ§λ₯)
Inputs: task_description (required), context, working_dir.
glm_code_runB
Python μ½λ μ€ν (μλλ°μ€).
Inputs: code (required), timeout.
glm_db_queryD
DB 쿼리 (SQLite).
Inputs: query (required), db_path, params, read_only.
glm_dir_listC
λλ ν 리 λͺ©λ‘ μ‘°ν.
Inputs: path (required), recursive, only_directories.
glm_file_createB
μ νμΌμ μμ±ν©λλ€.
Inputs: path (required), content (required), overwrite, encoding.
glm_file_deleteB
νμΌμ μμ ν©λλ€ (λ°±μ 보κ΄).
Inputs: path (required).
glm_file_editB
νμΌμ μμ ν©λλ€ (λ¬Έμμ΄ κ΅μ²΄).
Inputs: path (required), old_string (required), new_string (required).
glm_file_readC
νμΌ λ΄μ©μ μ½μ΅λλ€.
Inputs: path (required), encoding.
glm_file_rollbackC
νμΌμ 볡μν©λλ€.
Inputs: path (required), version.
glm_git_commitD
Git 컀λ°.
Inputs: message (required), add_all, repo_path.
glm_git_diffB
Git λ³κ²½ μ¬ν λΉκ΅.
Inputs: ref, file_path, stat_only, repo_path.
glm_git_logC
Git μ»€λ° μ΄λ ₯ μ‘°ν.
Inputs: n, oneline, repo_path.
glm_git_statusB
Git μν μ‘°ν.
Inputs: repo_path.
glm_grepC
νμΌ λ΄μ© κ²μ (grep).
Inputs: pattern (required), path, recursive, file_pattern, +3 more.
glm_http_requestD
HTTP μμ².
Inputs: url (required), method, headers, body, +1 more.
glm_image_analyzeC
μ΄λ―Έμ§ λΆμ (Vision).
Inputs: image_path (required), prompt.
glm_memory_deleteD
λ©λͺ¨λ¦¬ μμ .
Inputs: key (required).
glm_memory_getD
λ©λͺ¨λ¦¬ μ‘°ν.
Inputs: key (required), category.
glm_memory_listD
λ©λͺ¨λ¦¬ λͺ©λ‘.
Inputs: category, limit.
glm_memory_saveC
λ©λͺ¨λ¦¬ μ μ₯.
Inputs: key (required), value (required), category, ttl_hours.
glm_schedule_taskC
μμ μμ½ κ΄λ¦¬.
Inputs: action (required), name, cron, command, +1 more.
glm_shell_execB
μ νμ μ λͺ λ Ή μ€ν (νμ΄νΈλ¦¬μ€νΈ κΈ°λ°).
Inputs: command (required), cwd, timeout, capture_stderr.
glm_web_searchC
μΉ κ²μ (DuckDuckGo).
Inputs: query (required), max_results.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 25 tools
Most tools have distinct purposes, but 'glm_cmd' (delegating to GLM) and 'glm_bypass' (raw prompt) could confuse an agent. Also, multiple log-related tools (glm_action_log, glm_git_log) are separate but might be misinterpreted without careful reading.
All tools follow a consistent 'glm_<domain>_<action>' pattern (e.g., glm_file_create, glm_git_commit). This makes the tool set predictable and easy to navigate.
With 25 tools, the server is on the heavy side for a general-purpose assistant. While each tool serves a purpose, the count is borderline and could be streamlined by merging some functions (e.g., memory operations).
The tool surface covers a wide range: file operations, git, memory, code execution, web search, HTTP, image analysis, shell, scheduling, and DB queries. Minor gaps exist (e.g., no file rename or explicit memory update), but overall it's quite comprehensive for an AI assistant.
Related MCP Connectors
Shared control plane for AI coding agents β tasks, memory, decisions, file locks. 12 tools.
ERC-8004 agent identity, on-chain subscriptions, reputation, A2A tasks and chat over 53 tools.
AI agent tools: web search, browser, 400+ LLMs, image gen, TTS, phone verify. Pay-per-use.
Shared long-term memory vault for AI agents with 20 MCP tools.
Related MCP Servers
AlicenseAqualityBmaintenanceEnables AI assistants to manage remote servers via SSH with 43 specialized tools for command execution, file editing, directory operations, and background tasks across Linux, macOS, and Windows.4695 PyPI9GPL 3.0- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with 28 developer tools across file, git, code analysis, HTTP, and system domains, enabling tasks like file editing, repository management, code analysis, and shell command execution.2MIT
- AlicenseAqualityDmaintenanceActs as the 'Hands and Eyes' for an Autonomous AI Agent, bridging Large Language Models and your local development environment to enable safe file manipulation, context reading, command execution, and documentation verification.92ISC
- AlicenseCqualityBmaintenanceBridges cloud-based AI orchestrators with local systems, enabling file management, terminal execution, and autonomous background tasks through the Model Context Protocol.2314Apache 2.0