---
title: "Execute Mcp Command"
method: POST
path: "/v1/mcp/execute/{server_name}"
tags: ["MCP"]
---

# Execute Mcp Command

`POST /v1/mcp/execute/{server_name}`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/v1/mcp/execute/{server_name}`
- Auth: none declared

Execute a command on a specific MCP server.
This is a simplified HTTP interface for MCP servers.

## Path parameters

- `server_name` string, required

## Request body

- MCPRequest: Request to send to an MCP server.
  - `server` string, required
  - `method` string, required
  - `params` object
  - `id` integer, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/rubenayla/apis/partle-api.md) · [All operations](https://skmtc.dev/rubenayla/apis/partle-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rubenayla/apis/partle-api/revisions/628cce2acee5?raw)
