> **Source:** https://knowledge.leegality.com/document-execution/leegality-mcp-server > **Site:** Leegality Knowledge Base — https://knowledge.leegality.com > **About:** Leegality is a document execution platform covering eSigning, stamps, NeSL, workflows, and REST API integration. > **Navigation:** Every article on this site has a plain-text version at `.txt` (this format). To get an index of all articles with their `.txt` links, read: https://knowledge.leegality.com/llms.txt > **AI Guide:** For instructions on how to navigate this knowledge base as an AI agent, read: https://knowledge.leegality.com/ai-readable.txt --- # Leegality MCP Server The Leegality MCP Server lets you perform Leegality actions directly from your preferred AI assistant using natural language. MCP (Model Context Protocol) is an open standard that lets AI assistants such as Claude and ChatGPT connect to external tools and services. You can connect either the Production or the Sandbox environment, depending on whether you want to work with live transactions or explore the capabilities. ## Before you begin Make sure you have the following: - **An active Leegality account** in the environment you want to connect (Production or Sandbox). - **Access to custom connectors in your AI assistant:** Your Claude or ChatGPT plan must allow you to add custom MCP connectors. On organization or workspace plans, an administrator may need to add or approve the connector before you can use it. Check your AI assistant's documentation (see [Related resources](#related-resources)) for the plans that support it. > **Warning — Production affects real documents** > > Actions you perform through the Production connector can affect actual documents and transactions. We recommend exploring the capabilities on Sandbox before you perform actions on Production. ## Connection details Use the following values when you add Leegality as a connector in your AI assistant: | Field | Production | Sandbox | | --- | --- | --- | | **Name** | `Leegality Production` | `Leegality Sandbox` | | **MCP Server URL** | `https://api-gateway.leegality.com/leeai/mcp` | `https://sandbox-gateway.leegality.com/leeai/mcp` | ## Connect your AI assistant #### Claude **Step 1: Open Connectors** 1. Log in to Claude. 2. From the sidebar, click **Customize**, then click **Connectors**. 3. Click **+ Add** and select **Add custom connector** (or **Custom** → **Web**). **Step 2: Configure the connector** 1. In the **Add custom connector** window, enter the **Name** and **Remote MCP Server URL** for your environment from [Connection details](#connection-details). 2. Continue through the configuration, review the detected authentication settings, and select the sign-in option. 3. Click **Add**. **Step 3: Authenticate with Leegality** 1. Click **Connect** next to the newly added Leegality connector. 2. You are redirected to the Leegality authentication page. 3. Sign in with your existing Leegality credentials for the respective environment. 4. Complete the authorization. 5. You are redirected back to Claude. Authentication is generally a one-time process, unless your authorization expires or is revoked. **Step 4: Start using Leegality** 1. Open a new conversation in Claude. 2. Click the **+** icon near the message box and go to **Connectors**. 3. Make sure the Leegality connector is enabled. You can now ask Claude to perform Leegality actions. #### ChatGPT **Step 1: Open Plugins** 1. Log in to ChatGPT in your web browser. 2. Go to **Plugins** from the sidebar. 3. Click the **+** button. 4. Select **Add custom MCP server**. **Step 2: Configure the MCP Server** 1. In the **Add custom MCP server** window, enter the following details: | Field | Value | | --- | --- | | **Name** | Name for your environment from [Connection details](#connection-details) | | **Description** | `Perform Leegality actions directly from ChatGPT using natural language.` | | **MCP Server URL** | URL for your environment from [Connection details](#connection-details) | | **Authentication** | **OAuth** | 2. Review and acknowledge the security warning, then proceed to create the plugin. **Step 3: Authenticate with Leegality** 1. When prompted to authenticate, proceed to the Leegality login page. 2. Sign in with your existing Leegality credentials. 3. Complete the authorization. 4. Return to ChatGPT and complete the plugin setup and installation. **Step 4: Start using Leegality** 1. Open a new conversation in ChatGPT. 2. Type `@` in the message box. 3. Select **Leegality Production** or **Leegality Sandbox**. You can now interact with Leegality directly from ChatGPT. ## Example prompts to get started Once connected, try asking Claude or ChatGPT: | What you want | Try asking | | --- | --- | | Check your wallet balance | *What is my current Leegality wallet balance?* | | See your workflows | *Show me the available document workflows in my Leegality account.* | | Track pending documents | *Find documents that are pending signatures.* | | Check a document's status | *Check the status of a particular document.* | | Explore what's possible | *What actions can you perform using my Leegality account?* | The available actions depend on the tools exposed by Leegality MCP and your account permissions. ## Things to keep in mind > **Info** > > - **Individual authentication:** Each user must authenticate with their own Leegality account. > - **Existing permissions:** You can perform only the actions your existing Leegality permissions allow. > - **Organizational policies:** Follow your contractual commitments and your organization's AI usage policies before connecting your Leegality account to external AI tools. > - **Security:** Always review sensitive or transactional actions before approving them. ## Related resources For supported plans and admin setup, see the official guides: - [Claude: Custom connectors using remote MCP](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp) - [ChatGPT: Connecting custom MCP servers](https://help.openai.com/articles/12584461)