Skip to main content
POST
Create connection

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Path Parameters

namespace
string
required

Body

application/json
transport
enum<string>

Connection transport. Use uplink for a local server paired over Smithery CLI.

Available options:
http,
uplink
Example:

"http"

mcpUrl
string<uri>

URL of a custom MCP server. For Smithery registry servers, prefer server.

Example:

"https://mcp.example.com/sse"

server
string

Smithery registry server qualified name. Use this instead of mcpUrl for registry servers.

Required string length: 1 - 255
Pattern: ^@?[a-zA-Z0-9][a-zA-Z0-9_-]*(?:\/[a-zA-Z0-9][a-zA-Z0-9_-]*)?$
Example:

"upstash/context7-mcp"

source
object
name
string

Human-readable name (optional, defaults to connection ID)

Required string length: 1 - 255
Example:

"My MCP Server"

metadata
object

Custom metadata for filtering connections

Example:
headers
object

Custom headers to send with MCP requests (stored securely, not returned in responses)

Example:
mock
object

Run this connection in mock mode. Tool calls are LLM-simulated against the registry's scanned schemas and never reach the upstream server. Provide an optional scenario to seed the simulator with a starting-state description. Registry servers only; frozen at creation (cannot be toggled via PUT).

Example:

Response

Connection created

connectionId
string
required

Connection ID (auto-generated or developer-defined)

Example:

"clever-dolphin-a9X3"

name
string
required

Human-readable name

mcpUrl
string | null
required

MCP server URL. Null for uplink connections.

metadata
object | null
required
transport
enum<string>

Connection transport

Available options:
http,
uplink
mock
object

Mock-mode config: {enabled: true, scenario?} when LLM-simulated, absent otherwise.

iconUrl
string | null
createdAt
string

ISO 8601 timestamp

status
ConnectionStatusConnected · object

Last known connection status

serverInfo
object

Server information from MCP initialization (name, version)