No-Code

Connect to enterprise-grade MCP servers instantly!Klavis MCP Servers - No Code CreationGet Started →

For Developer

Follow the instructions below to integrate Close CRM MCP server to your AI application using our API or SDK.

Prerequisites

1. Create a Close CRM MCP Server

Use the following endpoint to create a new remote Close CRM MCP server instance:

Request

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="<YOUR_API_KEY>")

# Create a Close MCP server instance
close_server = klavis_client.mcp_server.create_server_instance(
    server_name=McpServerName.CLOSE,
    user_id="<YOUR_USER_ID>",
    platform_name="<YOUR_PLATFORM_NAME>",
)

Response

{
  "serverUrl": "https://close-mcp-server.klavis.ai/mcp/?instance_id=<instance-id>",
  "instanceId": "<instance-id>",
  "oauthUrl": "https://api.klavis.ai/oauth/close/authorize?instance_id=<instance-id>"
}
serverUrl specifies the endpoint of the Close CRM MCP server, which you can connect with the MCP client of your application.
instanceId is used for authentication and identification of your server instance. After you complete the next steps, this token allows the MCP server to access user’s private Close CRM information.

2. Implement OAuth Authorization

Redirect users to the OAuth authorization flow:
import webbrowser

webbrowser.open(close_server.oauth_url)
You can also specify scope and redirect_url in the authUrl. Check the API reference for more details.

Explore MCP Server Tools

For more details about tool input schema, use the list_tool API.