Skip to main content
The following is a concise example using the MCP Python SDK to connect to the Cotality MCP server and call a tool.

Prerequisites

  • Python 3.10+

Programmatically connect and call MCP tools

Create a .env file (or set environment variables) with your credentials and endpoint. See Authentication for details on obtaining credentials and Quick start for endpoint URLs.
Then run the following script:

What this does

  1. Authenticates using your client_id and client_secret to obtain an access token
  2. Connects to Cotality MCP over Streamable HTTP with the access token
  3. Lists your available MCP tools
  4. Calls clip-find_property_by_full_address with a sample address and prints the result