Magic MCP Token

Before you can connect to an MCP server, you need to create a magic MCP token.

Magic MCP Token object

Attributes

items

Object
{
"items": {
"0": {
"object": "magic_mcp.token",
"status": "active",
"metadata": {}
},
"object": "example_object",
"id": "example_id",
"status": "",
"secret": "example_secret",
"name": "example_name",
"description": "example_description",
"metadata": "example_metadata",
"created_at": "2025-10-15T16:41:27.533Z",
"updated_at": "2025-10-15T16:41:27.533Z"
},
"pagination": {
"has_more_before": false,
"has_more_after": false
}
}

List magic MCP token

List all magic MCP token

Query Parameters

limit

NumberOptional

after

StringOptional

before

StringOptional

cursor

StringOptional

order

EnumOptional

status

UnionOptional
GEThttp://api.metorial.com/magic-mcp-tokens
curl -X GET "https://api.metorial.com/magic-mcp-tokens" \
-H "Authorization: Bearer metorial_sk_..."

Get magic MCP token

Get the information of a specific magic MCP token

URL Parameters

magic_mcp_token_id

String

The unique identifier for the magic_mcp_token

GEThttp://api.metorial.com/magic-mcp-tokens/:magic_mcp_token_id
curl -X GET "https://api.metorial.com/magic-mcp-tokens/mag_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."

Create magic MCP token

Create a new magic MCP token

Request Body

name

String

The name of the magic MCP token

description

StringOptional

The description of the magic MCP token

metadata

StringOptional

The metadata of the magic MCP token

POSThttp://api.metorial.com/magic-mcp-tokens
curl -X POST "https://api.metorial.com/magic-mcp-tokens" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer metorial_sk_..." \
-d '{
"name": "example_name",
"description": "example_description",
"metadata": "example_metadata"
}'

Delete magic MCP token

Delete a specific magic MCP token

URL Parameters

magic_mcp_token_id

String

The unique identifier for the magic_mcp_token

DELETEhttp://api.metorial.com/magic-mcp-tokens/:magic_mcp_token_id
curl -X DELETE "https://api.metorial.com/magic-mcp-tokens/mag_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."

Update magic MCP token

Update the information of a specific magic MCP token

URL Parameters

magic_mcp_token_id

String

The unique identifier for the magic_mcp_token

Request Body

name

StringOptional

The name of the magic MCP token

description

StringOptional

The description of the magic MCP token

metadata

StringOptional

The metadata of the magic MCP token

PATCHhttp://api.metorial.com/magic-mcp-tokens/:magic_mcp_token_id
curl -X PATCH "https://api.metorial.com/magic-mcp-tokens/mag_Rm4Mnheq2bfEPhBhP7SY" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer metorial_sk_..." \
-d '{
"name": "example_name",
"description": "example_description",
"metadata": "example_metadata"
}'