Prerequisites

To get the most out of this guide, you’ll need to:

1. Create a Klavis ReportGen MCP Server

Use the following endpoint to create a new remote Klavis ReportGen MCP server instance:

Request

curl --request POST \
  --url https://api.klavis.ai/mcp-server/instance/create \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
  "serverName": "Klavis ReportGen",
  "userId": "<YOUR_USER_ID>",
  "platformName": "<YOUR_PLATFORM_NAME>"
}'

Response

{
  "serverUrl": "https://reportgen-mcp-server.klavis.ai/sse?instance_id=<instance-id>",
  "instanceId": "<instance-id>"
}
serverUrl specifies the endpoint of the Klavis ReportGen MCP server, which you can connect and use this MCP Server to generate reports from a query.
instanceId is used for authentication and identification of your server instance.

Explore MCP Server Tools