MCP server

Open in the interactive reference

The Lensing MCP server connects AI applications, such as Claude and ChatGPT, to your Lensing data through the Model Context Protocol (MCP). The application signs in as you. It can then search the API, read your records and, when you approve it, change them.

Use the MCP server when a person works with Lensing through an AI application. For an integration that runs on its own, call the REST API with an access token instead; see Quickstart.

Before you start

You need:

Using the AI application through your organization? On an organization account, such as Claude Team or Enterprise, or ChatGPT Business, Enterprise or Edu, your organization admin must first add and approve the Lensing MCP server for the organization. Members usually cannot add it themselves. Send your admin this page and your server URL; once it is approved, you connect your own account.

Your server URL

Each tenant has its own MCP server:

Server URL

https://<your-tenant-host>/api/app/mcp

Replace <your-tenant-host> with the address of your tenant, the one you sign in to Lensing at, without any path. If you sign in at https://acme.lensing.ai, your server URL is https://acme.lensing.ai/api/app/mcp.

Besides the server URL, an AI application may ask for these settings:

Setting Value
Transport Streamable HTTP
Authentication OAuth. You sign in with your Lensing account.
Client ID and client secret Not needed. Leave them blank.

What the application can do

The application acts as you. It can read only the data, and run only the actions, that your permission roles allow; access token grants play no part. If a call needs a role you do not have, ask your administrator.

The server gives the application six tools. They reach the endpoints this reference documents, and the application looks up how to call each one before it does:

Tool What it does Writes
search_endpoint_api_catalog Searches the API catalog by keyword. No
query_endpoint_api_catalog Looks up catalog entries by name, or lists those of a package. No
get_endpoint_api_target_details Returns how to call an endpoint: its input and output, errors and examples. No
query_endpoint_api_data_set Reads rows of one data set, with filters, sorting and pages. It does not join data sets. No
execute_endpoint_api_read_action Runs an action that only reads, such as a lookup or a calculation. No
execute_endpoint_api_write_action Runs an action that creates, changes, deletes or sends something. Yes

Sandboxes and your live data

The tools work in your current environment: a sandbox, if you are in one, or your live data. Every tool result tells the application which.

On your live data, a write is real. Some actions cannot be undone, and some reach people outside Lensing, such as sending a document for signature. So:

Connect from Claude

On a personal account (Free, Pro or Max), add the connector yourself:

  1. Open Customize › Connectors, select + Add, then Add custom connector.
  2. Enter a name, such as Lensing, and your server URL. Select Continue.
  3. Keep Sign in now and Use Claude's published identity, and select Add.
  4. Sign in with your Lensing account in the window that opens.

On a Team or Enterprise account, members cannot add a custom connector. Ask your organization owner to add Lensing once, under Organization settings › Connectors › Add › Custom › Web, with the same name and server URL. On Enterprise, a custom role can also be allowed to do this. Once it is added, each member opens Customize › Connectors, finds the connector and selects Connect.

To choose which Lensing tools Claude may run without asking, open the connector under Customize › Connectors. For the current steps, see Get started with custom connectors using remote MCP.

Connect from ChatGPT

Custom MCP servers are available on ChatGPT Business, Enterprise and Edu, on the web, and they need your workspace admin. On Business, only admins and owners can add and publish one. On Enterprise and Edu, admins can also let selected members add one, but only admins and owners can publish it to the workspace. Ask your workspace admin to add and publish Lensing; then install it from Plugins and sign in.

If you are the admin:

  1. Open Plugins, select +, then Add custom MCP server.
  2. Enter a name, such as Lensing, and your server URL. Choose OAuth as the authentication.
  3. Read the warning, confirm it, and select Create as a plugin.
  4. Install the plugin and sign in with your Lensing account.
  5. In a new chat, type @ and select the plugin.

For the current steps and the settings an administrator controls, see Connecting custom MCP servers in ChatGPT.

Other MCP clients

Any client that supports remote MCP servers over Streamable HTTP with OAuth can connect. Give it your server URL and the settings in the table above; it opens a Lensing sign-in page the first time it connects.

Signing in

The first time the application connects, a browser window opens on your tenant. Check that its address is your Lensing address, then sign in as you usually do. The application stays connected until you disconnect it in the application or your sign-in expires; then it asks you to sign in again.

Troubleshooting

Privacy and terms

The MCP server is part of Lensing and is covered by the Privacy Policy and the Terms of Use.

Examples

OAuth metadata

https://<your-tenant-host>/.well-known/oauth-protected-resource/api/app/mcp

For developers of MCP clients: the server follows the MCP authorization specification. It uses OAuth 2.1 with PKCE (S256), accepts a Client ID Metadata Document or dynamic client registration, and needs no client secret. A request without a token answers 401 with a WWW-Authenticate header that points at this metadata.