---
title: "Test Mcp Connection"
method: POST
path: "/api/mcp/test-connection"
tags: ["MCP Management"]
---

# Test Mcp Connection

`POST /api/mcp/test-connection`

Test MCP server connection without saving.

## Request body

- MCPConnectionTest — Request model for testing MCP connection.
  - `name` string, required — Connection name
  - `transport` string, required — Transport type
  - `config` object, required — Connection configuration

## Response `200`

Successful Response

- MCPConnectionTestResponse — Response model for MCP connection test.
  - `success` boolean, required
  - `message` string, required
  - `details` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.net/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
