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
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalstatus
UnionOptionalcurl -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
StringThe unique identifier for the magic_mcp_token
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
StringThe name of the magic MCP token
description
StringOptionalThe description of the magic MCP token
metadata
StringOptionalThe metadata of the magic MCP token
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
StringThe unique identifier for the magic_mcp_token
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
StringThe unique identifier for the magic_mcp_token
Request Body
name
StringOptionalThe name of the magic MCP token
description
StringOptionalThe description of the magic MCP token
metadata
StringOptionalThe metadata of the magic MCP token
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"}'