--- url: "https://ai.google.dev/gemini-api/docs/coding-agents" titulek: "Set up your coding assistant with Gemini MCP and Skills | Gemini API | Google AI for Developers" h1: "Set up your coding assistant with Gemini MCP and Skills" popis: "Install Gemini API skills to give your AI coding assistant access to the latest documentation and best practices." jazyk: "en" kanonicka: "https://ai.google.dev/gemini-api/docs/coding-agents" drobecky: ["Gemini API", "Set up your coding assistant with Gemini MCP and Skills"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 06:16:33" znaku: 6095 slov: 898 kodovani: "iso-8859-2" sha256: "7c419d4702a3cab171f83990dbd670219aa701600b45b8155b55e979f7943d13" --- Set up your coding assistant with Gemini MCP and Skills AI coding assistants are powerful but have limitations—training data cuts off at a specific date, missing new API features and changes. Without access to Gemini-specific documentation, agents may suggest generic patterns instead of optimized approaches. To keep your coding assistant current with the evolving Gemini API and its recommended usage, we recommend setting up the **Gemini Docs MCP** and enhancing your environment with **Gemini API Skills**. While these tools are usable independently, they are designed to work together to provide complete coverage. Connect the Gemini Docs MCP Gemini hosts a public Model Context Protocol (MCP) server at `https://gemini-api-docs-mcp.dev`. Connecting your coding agent to this server ensures that all queries have access to the latest APIs, code updates, and optimal configuration examples. Run the following command in your agent's terminal or project root to install the server: `npx add-mcp "https://gemini-api-docs-mcp.dev"` This server adds a `search_documentation` function that your agent can use to retrieve real-time API definitions and integration patterns from the official Gemini documentation files. Add API Development Skills The skills provide **baked-in rules and best practices** (such as enforcing the correct SDK and current model versions) directly in your assistant's context. The skill works together with the Gemini Docs MCP service: If you have both installed, the skill uses the MCP service for documentation, but even without the MCP installed, it will fetch `llms.txt` from `ai.google.dev` as a fallback. To install these skills, you can use one of the following supported tools. Installation instructions for both are provided below each skill module: **[skills.sh](https://skills.sh)**: Recommended. The open standard for portable agent behaviors. **[Context7](https://context7.com)**: Supported for users already utilizing the Context7 ecosystem. gemini-api-dev Skill for building apps with the [Gemini API](/gemini-api/docs/interactions-overview) (Interactions API). The Interactions API is our simplest and best way to build with Gemini models and agents. This skill covers: Text generation, multi-turn chat, and streaming Function calling, structured output, and image generation Background execution and Deep Research agents Server-side conversation state management Prompt routing to current models and avoiding deprecated models Python and TypeScript SDK patterns Install with skills.sh `npx skills add google-gemini/gemini-skills --skill gemini-api-dev --global` Install with Context7 `npx ctx7 skills install /google-gemini/gemini-skills gemini-api-dev` gemini-live-api-dev Skill for building real-time conversational AI applications with Gemini Live API. This skill provides documentation and best practices for: WebSocket connections for low-latency streaming Streaming audio, video, and text Voice activity detection and barge-in support Install with skills.sh `npx skills add google-gemini/gemini-skills --skill gemini-live-api-dev --global` Install with Context7 `npx ctx7 skills install /google-gemini/gemini-skills gemini-live-api-dev` Verify installation After installing, confirm that your coding assistant can connect to the Gemini Docs MCP server and use your installed skills. 1. Verify agent behavior The most reliable way to verify is to ask your agent a technical question about Gemini API. **Prompt:** "How do I use context caching with the Gemini API?" A successful setup will: **Provide accurate code**: Reference specific Gemini methods like `cacheContent` or `cachedContents.create` from the latest endpoints. **Use the MCP Tool**: Show that it is connected to the **Gemini Docs MCP Server** or utilizing the `search_documentation` tool to fetch data. **Invoke loaded skills**: Show an indicator that it is "Using skill: gemini-api-dev" (if relying on a secondary wrapper). 2. Verify manifestations & tools If the agent gives a general or generic answer, use the specific Discovery or Status commands for your environment to verify that the Docs MCP or skill is loaded into memory. Environment MCP Verification Skills Verification **Claude Code** Type `/mcp` in the terminal to view active servers and `search_documentation` tools. Type `/skills` in the terminal to list all active manifests. **Cursor** Navigate to **Settings > Features > MCP**. Ensure server is "Connected". Open **Settings > Rules**. Verify the skill appears under "Agent Decides." **Antigravity** Check the **Customizations > Connections** sidebar for MCP status. Type `/skills list` or check the **Customizations > Rules** sidebar. **Gemini CLI** Run `gemini mcp list` or use `/mcp list`. Run `gemini skills list` or use the `/skills` slash command in-session. **Copilot** Type `@gemini /mcp` to list active data connectors. Type `@gemini /skills` (or `/skills`) to view active extensions. Troubleshooting If your agent provides only general information or fails to recognize Gemini-specific methods, check the following: Agent didn't discover the skill Most agents index skills only on startup. **Fix:** Completely restart your IDE (Cursor/VS Code) or exit and re-open your terminal-based agent (Claude Code). Global vs. local conflict If you installed with the `--global` flag, your agent might be ignoring it in favor of project-specific rules. **Fix:** Try installing the skill directly into your project root without the global flag: `npx skills add google-gemini/gemini-skills --skill gemini-api-dev` Resources [Gemini API skills on GitHub](https://github.com/google-gemini/gemini-skills) [Interactions API](/gemini-api/docs/interactions-overview) [Get started](/gemini-api/docs/get-started) [Libraries](/gemini-api/docs/libraries) Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2026-09-01 UTC.