---
title: "Creates a new MCP token associated to an account."
method: POST
path: "/v1/accounts/{accountSid}/mcpTokens"
tags: ["MCP Tokens"]
---

# Creates a new MCP token associated to an account.

`POST /v1/accounts/{accountSid}/mcpTokens`

## Request

- Base URL: `https://api.apitraffic.io`
- URL: `https://api.apitraffic.io/v1/accounts/{accountSid}/mcpTokens`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation/docs/v1/accounts/:accountSid/mcpTokens/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `accountSid` string, required: accountSid

## Request body

- Model15
  - `name` string, required: Name of the MCP token
  - `environmentSid` string, required: Environment SID to scope this token to
  - `bucketSids` string[]: Array of bucket SIDs to scope to (empty = all buckets in environment)

## Response `default`

Successful

- string

---

[API](https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation.md) - [All operations](https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation/revisions/b2a22a9b5c98?raw)
