Home / Servers / DigitalOcean API / vpcs_create_peerings
Create a Peering with a VPC
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Create a Peering with a VPC To create a new VPC peering for a given VPC, send a POST request to /v2/vpcs/$VPC_ID/peerings. [POST /v2/vpcs/{vpc_id}/peerings]
Name on the gateway: digitalocean_api__vpcs_create_peerings · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
vpc_id required | string | A unique identifier for a VPC. |
name required | string | The name of the VPC peering. Must be unique and may only contain alphanumeric… |
body_vpc_id required | string | The ID of the VPC to peer with. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "digitalocean_api__vpcs_create_peerings",
"arguments": {
"vpc_id": "…",
"name": "…",
"body_vpc_id": "…"
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create a peering with a vpc tool with vpc_id set to ….