GitHub Copilot integration
GitHub Copilot is GitHub's AI coding assistant. In VS Code, its agent mode reads and edits your workspace, runs commands, and completes multi-step development tasks.
The Apify plugin for GitHub Copilot connects Copilot to Apify's library of Actors and bundles:
- The Apify MCP server for searching Apify Store, running Actors, and retrieving datasets through the Model Context Protocol (MCP).
- An
apifyrouting agent that picks the right tool or skill from a natural-language request. - Five built-in skills for common workflows (see Bundled skills below).
This guide covers setup in VS Code.
This integration uses a third-party service. If you find outdated content, please submit an issue on GitHub.
Prerequisites
- An Apify account - sign up for free if you don't have one.
- VS Code version 1.120 or newer, with the GitHub Copilot Chat extension installed and signed in with Copilot access.
Install the plugin
Install the plugin directly from its GitHub repository - there's no need to clone it.
-
Copy the plugin repository URL:
https://github.com/apify/apify-github-copilot-plugin -
In VS Code, open the Command Palette (
Ctrl+Shift+P, orCmd+Shift+Pon macOS) and run Chat: Install Plugin from Source.
-
Paste the repository URL into the input field and press Enter.

-
In the trust dialog, review the source and select Trust.

-
VS Code installs the plugin and opens the Plugin: apify panel, which shows Disable and Uninstall actions. You can reopen it anytime from the Command Palette (
Ctrl+Shift+P, orCmd+Shift+Pon macOS) with Chat: Plugins, which lists your installed agent plugins.
-
Open Copilot Chat, open the mode picker, and select the apify agent.

Connect the Apify MCP server
The plugin bundles the Apify MCP server (https://mcp.apify.com/) - its configuration ships in the plugin's .mcp.json, so you don't add it manually. Read-only tools like searching Apify Store and fetching Actor details work without signing in, but you need to authenticate to run Actors and access your account data.
-
Open the tools picker in Copilot Chat and confirm that Apify MCP Server is selected for the
apifyagent.
-
Open the plugin's
.mcp.json. A Start action appears above theapify-mcp-serverentry - select it to start the server.
-
VS Code prompts that the MCP server wants to authenticate to
console-backend.apify.com. Select Allow, complete the Apify OAuth flow in your browser, and choose the account to connect. -
The
apify-mcp-serverentry shows Running and exposes its tools.
The connection stays authenticated for future sessions. You can revoke access at any time in Apify Console > Settings > Integrations.
Run your first prompt
Select the apify agent and describe what you want in natural language. The agent routes the request to the right tool or skill, so you don't need to name tools yourself.
Use Apify to find a good Actor for scraping Google Maps places. Show me the best option, its input requirements, pricing model, and what kind of dataset output it returns. Do not run the Actor yet.
The agent searches Apify Store, fetches the top Actor's details through the Apify MCP server, and summarizes its inputs, pricing, and output - all without running the Actor.
To check what's available, ask the agent to list its Apify tools.

Bundled skills
| Skill | Description |
|---|---|
apify-ultimate-scraper | CLI-driven extraction using existing Actors for multi-step scraping and lead-generation workflows. |
apify-actor-development | Full Actor lifecycle - template selection, development, local testing, and deployment with apify push. |
apify-actorization | Converts existing JavaScript, TypeScript, Python, or CLI projects into Apify Actors. |
apify-generate-output-schema | Generates dataset and key-value store schemas for existing Actors. |
apify-sdk-integration | Integrates Actor execution into applications using the apify-client package. |
Example prompts that route to specific skills:
Ultimate scraper:
Find 10 highly rated coffee shops in Seattle with name, address, rating, phone, and website.
Actor development:
Create an Apify Actor that accepts a
startUrlandmaxPagesinput, crawls the site, and stores each page title and URL.
SDK integration:
Add Apify to this project. The Node.js API route should run an Actor and return dataset items as JSON.
Authentication paths
The apify agent uses the transport that fits the task, and each one authenticates differently:
- For MCP tools (search, run, retrieve data), authenticate with OAuth through the browser, as described in Connect the Apify MCP server. No token setup is needed.
- For the Apify CLI (building Actors, actorization, CLI fallback), run
apify loginonce, or setAPIFY_TOKENin headless environments. Get your token from Apify Console > Settings > Integrations. - For SDK integration with
apify-client, set theAPIFY_TOKENenvironment variable in your application's environment.
Troubleshooting
The apify agent doesn't appear in the picker
Confirm that the plugin is installed and trusted (rerun Chat: Install Plugin from Source if needed), that Chat: Plugins is enabled in Settings, and that you reloaded the window after installing. Plugin support requires VS Code 1.120 or newer.
The Apify MCP server won't start
Open the plugin's .mcp.json and select the Start action above the apify-mcp-server entry, then complete the Allow prompt and account selection. Check the Output panel (MCP: apify-mcp-server) - a successful start ends with a line about the discovered tools. Confirm the Apify MCP Server tool is enabled for the apify agent in the tools picker.
Browser doesn't open, or OAuth fails
If the browser doesn't open automatically, copy the OAuth URL from the VS Code dialog and paste it into your browser manually.
If you're running VS Code over SSH, in a dev container, or in any environment without a browser, the MCP OAuth flow can't complete. Authenticate locally first so the connection is stored, or use the CLI and SDK paths instead - run apify login, or set APIFY_TOKEN:
export APIFY_TOKEN=<YOUR_API_TOKEN>
The agent picks the wrong skill or transport
Start from the apify agent. It is the single entry point that detects the available transport and routes each request to the correct tool or skill.
Limitations
- Copilot plugin support is a preview feature in VS Code, so its settings and behavior may change between releases.
- The plugin is installed from its GitHub repository URL; it isn't published to a plugin marketplace yet.
- Long-running Actors may exceed the time a single tool call waits for completion. Reduce the scope or split the work across multiple prompts.
- Each Actor run consumes usage on the Apify platform from your plan in addition to any Copilot usage. See the Apify billing documentation for details.
- Skills that edit files in your project (Actor development, actorization, SDK integration) make local changes - review them before deploying or committing.
Related integrations
- Claude Code CLI integration - Install the Apify plugin in the Claude Code CLI
- MCP server integration - Use the Apify MCP server with other clients
Resources
- Apify plugin for GitHub Copilot - Source repository and full README with advanced setup notes
- GitHub Copilot documentation - Official GitHub Copilot docs
- Apify MCP server documentation - Connect the Apify MCP server to other clients
- Apify Store - Browse Actors you can run from Copilot