Agent Engine MCP server tutorial
In this tutorial, you install Airbyte's Agent Engine MCP server, configure a connector, and register the server with your agent. Once registered, you can use natural language to query your data sources. You don't have to write any code.
This tutorial uses GitHub as an example, but you can substitute any agent connector that Airbyte supports.
Overview
This tutorial is for somewhat technical users who work with data and AI agents. You can complete it in about 5 minutes.
The tutorial assumes you have basic familiarity with:
-
Python and package management with uv
-
MCP servers
Before you start
Before you begin this tutorial, ensure you have the following.
-
Python version 3.13 or later
-
A GitHub personal access token. For this tutorial, a classic token with
reposcope is sufficient. -
An agent that supports MCP servers
Part 1: Create a project
Create a directory for your MCP server configuration and initialize a uv project.
mkdir my-mcp-server && cd my-mcp-server
uv init --python 3.13
Add airbyte-agent-mcp as a dependency. This installs the package and makes the adp command-line tool, available through uv run. You use adp to discover connectors, generate configurations, and register the MCP server with your agent.
uv add --prerelease allow airbyte-agent-mcp
The --prerelease allow flag is required because airbyte-agent-mcp depends on a pre-release version of one of its upstream libraries. This flag is only needed during installation.
Part 2: List available connectors
Run the following command to see the available open source connectors. This queries the Airbyte connector registry and displays a table of available connectors, their package names, versions, and definition IDs.
uv run adp connectors list-oss
To filter connectors by name, use the --pattern flag
uv run adp connectors list-oss --pattern github
Part 3: Generate a connector configuration
Generate a configuration file for the GitHub connector:
uv run adp connectors configure --package airbyte-agent-github
This installs the connector package, inspects its authentication requirements, and generates a YAML configuration file called connector-github-package.yaml. The file looks like this:
connector:
package: airbyte-agent-github
credentials:
access_token: ${env.GITHUB_ACCESS_TOKEN}
The ${env.GITHUB_ACCESS_TOKEN} placeholder tells the MCP server to read the value from an environment variable. You set this in the next step.
Some connectors support multiple authentication methods. The configure command may include commented-out alternatives in the generated file. You only need to configure one method.
Part 4: Set your credentials
Create a .env file in the same directory as your connector configuration. Replace the placeholder with your actual GitHub personal access token.
GITHUB_ACCESS_TOKEN=your-github-personal-access-token
The adp command line tool automatically loads .env files from the current directory. The ${env.VAR} syntax in your YAML configuration resolves to the values in this file.
Never commit your .env file to version control. If you do this by mistake, rotate your secrets immediately.
Part 5: Register with your agent
Register the MCP server with your preferred agent.
- Claude Code
- Claude Desktop
- Cursor
- Codex
This command runs claude mcp add under the hood and registers the server at the user scope.
uv run adp mcp add-to claude-code connector-github-package.yaml
To register at the project scope instead, add --scope project to that command.
This command modifies your Claude Desktop configuration file directly.
uv run adp mcp add-to claude-desktop connector-github-package.yaml
This modifies the Cursor MCP configuration file.
uv run adp mcp add-to cursor connector-github-package.yaml
To register at the project scope instead of user scope, add a --scope project flag.
This command runs codex mcp add to register the server.
uv run adp mcp add-to codex connector-github-package.yaml
You can optionally specify a custom name for the server with --name. If you don't specify a name, the server name is based on the connector. For example, airbyte-github.
uv run adp mcp add-to claude-code connector-github-package.yaml --name my-server-name
Part 6: Use the MCP server
-
Restart your agent so it picks up the new MCP server registration.
-
Once restarted, prompt your agent with natural language questions about your GitHub data. Try prompts like:
-
List the 5 most recent open issues in airbytehq/airbyte -
Show me the latest pull requests in my-org/my-repo -
What are the open issues assigned to octocat?
-
Your agent discovers the MCP server's tools automatically and calls them based on your prompts. The MCP server handles executing the connector operations and returning the results. If your agent fails to retrieve data, see Troubleshoot the MCP server.
Summary
In this tutorial, you learned how to:
-
Set up a project with the Agent Engine MCP server
-
Discover available connectors with the
adpcommand line tool -
Generate a connector configuration file
-
Set credentials using environment variables
-
Register the MCP server with your agent
-
Query data using natural language prompts
Next steps
-
Try other connectors. Run
uv run adp connectors list-ossto see all available connectors and repeat these steps with a different data source. -
Learn how to configure the MCP server for advanced scenarios like Agent Engine hosted execution, git-based packages, and aggregate configurations with multiple connectors.
-
Learn about field selection, downloads, and other advanced features.