Skip to main content
POST
/
servers
/
{id}
/
tools
Create MCP Server Tool Association
curl --request POST \
  --url https://api.example.com/servers/{id}/tools \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tool": {
    "serverID": "kSuB9Gf6aD4",
    "providerID": "kSuB9Gf6aD4",
    "toolID": "kSuB9Gf6aD4"
  }
}
'
{
  "tool": {
    "serverID": "kSuB9Gf6aD4",
    "providerID": "kSuB9Gf6aD4",
    "toolID": "kSuB9Gf6aD4"
  }
}

Authorizations

Authorization
string
header
required

Enter 'Bearer' followed by a space and your token (e.g., 'Bearer ${HASMCP_ACCESS_TOKEN}').

Path Parameters

id
string
required

MCP Server ID

Body

application/json
tool
object

Response

201 - application/json

Tool associated

tool
object