Searching the catalogue needs no account.
call_endpoint runs on your account, and there are two ways to give it one:
- Sign in. Add the URL with no key. The first time the agent calls an endpoint, the client asks you to sign in to your account and approve it. This is the way for ChatGPT and Claude, and it works in any client that supports OAuth for MCP servers.
- API key. Send
Authorization: Bearer sk_live_...with every request. Use this for your own agents and for servers, where nobody is there to sign in.
Connect a client
- Claude
- ChatGPT
- Claude Code
- Cursor
- VS Code
In Claude, open Customize, then Connectors, choose Add custom connector and enter the URL:Claude can search the catalogue straight away. The first time it calls an endpoint it shows a Connect card: sign in and approve, and it retries the call.
Signing in, for client developers
The server follows the MCP authorization specification:call_endpointwithout a credential answers401with aWWW-Authenticateheader that points to/.well-known/oauth-protected-resource/mcp. The handshake,tools/listand the two free tools never do.- The authorization server is
https://perceptlayer.com, described at/.well-known/oauth-authorization-server. - Clients are public: PKCE with
S256is required and there are no client secrets. A client registers at/oauth/register, or uses anhttpsURL to its client metadata document as itsclient_id. - An access token lasts one hour. The refresh token is replaced each time it is used.
- There is one scope,
endpoints:call.
Getting an API key from an agent
An agent that knows its user’s email can get an API key for that user’s account without the user copying one from the dashboard. It follows auth.md (theservice_auth method of the auth.md protocol):
- The agent posts the email to
https://perceptlayer.com/agent/identityand gets a 6-digit code and a link. - The user opens the link, signs in with that email, and types the code.
- The agent polls
https://perceptlayer.com/oauth/tokenand receives an API key named “Agent key”.
Limits
- Calls through MCP follow the same rules as the API: failed calls are free, rate limits apply, and restricted endpoints need the terms.
- Responses longer than 100,000 characters are cut short. Use an endpoint’s paging or limit parameters for large results.
- Connect from a desktop app, a command-line tool or your own server. MCP clients that run in a web browser aren’t supported yet.