# Step 5: Connect your agent to your services with MCP

> Pagebee Academy, part 1 (Set up). An MCP server lets your agent use a service directly: read your DNS, look at a deploy, check a payment. Add three now, and the rest of this guide gets much shorter.

Time: 15 minutes. Cost: Free.

## Why it matters

MCP (Model Context Protocol) is a standard way for an agent to use another service. The service runs an MCP server; you connect your agent to it once and sign in; from then on you can say "add the DNS record Resend needs" and the agent does it, instead of telling you which buttons to press.

In the Claude apps they're called **connectors**. In Claude Code they're **MCP servers**. Same thing. If you add a connector at [claude.ai](https://claude.ai/customize/connectors) while signed in with your Claude account, Claude Code picks it up too.

Each one you add is a service you no longer operate by hand. That's how one person runs a whole product.

## Do this

1. Open a normal terminal (not inside Claude Code) in your repo. Add Cloudflare, so your agent can manage DNS:

```
claude mcp add --transport http cloudflare https://mcp.cloudflare.com/mcp
```

2. Add GitHub. It needs a token: go to [github.com/settings/personal-access-tokens](https://github.com/settings/personal-access-tokens), create a fine-grained token for your repo with read and write access to contents, issues and pull requests, and paste it where it says YOUR_TOKEN.

```
claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_TOKEN"
```

3. Google Cloud doesn't need an MCP server yet: Claude Code drives the `gcloud` tool you installed in step 3 directly, with your own permissions.
4. Start Claude Code and type `/mcp`. Pick each server marked as needing sign-in, and approve it in your browser. Cloudflare lets you choose which permissions to grant: DNS for your domain is enough for now.

```
claude
/mcp
```


## Paste into Claude Code

```text
List the MCP servers you can use in this project and what each one can do. Then use Cloudflare to list the DNS records on my domain, and GitHub to show the last three commits on this repo, so I know both connections work.
```

Later steps add Stripe, Resend and your analytics and support tool the same way, each with one line.

## The trap: Committing a token to the repo

If you add a server with `--scope project`, Claude Code writes it to a `.mcp.json` file meant to be shared in the repo. Put a token in there and you've published it. Keep servers with tokens at the default scope, which stays on your machine, and never paste a token into a prompt.

## Using something else

Cursor, Codex and VS Code all speak MCP too. The URLs above are the same everywhere; only the add command changes.

## Which to add first

Add them when the step that needs them comes up, not all at once. The order this guide uses:

- **Cloudflare** (now): DNS records for your domain, email and HTTPS.
- **GitHub** (now): issues, pull requests and reviews.
- **Stripe** (step 10): products, prices and test payments.
- **Resend** (step 10): sending domains and test emails.
- **Your analytics, error tracking and support tool** (step 11).

Each one asks for permission once. You can see and remove them any time with `/mcp` or `claude mcp list`.

## Sources

- [Claude Code: connect to tools with MCP](https://code.claude.com/docs/en/mcp)
- [Claude: custom connectors](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp)
- [Cloudflare's MCP servers](https://developers.cloudflare.com/agents/model-context-protocol/mcp-servers-for-cloudflare/)
- [GitHub MCP server for Claude](https://github.com/github/github-mcp-server/blob/main/docs/installation-guides/install-claude.md)

Checked 24 November 2026. https://pagebee.ai/academy/mcps
