Skip to documentation
Docs/MCP integration

MCP integration

MCP (Model Context Protocol) lets an assistant discover and call Anyuse tools. It uses the same account, quotes, spending limits and execution records as the HTTP API.

Connect to Anyuse

MCP endpoint
https://mcp.anyuse.app/mcp

Set up your client

Cursor · VS Code

Open the link for your editor, review the Anyuse server URL and confirm installation. Start the server and follow the OAuth prompt. For manual setup, use the matching workspace file below.

Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "anyuse": {
      "url": "https://mcp.anyuse.app/mcp"
    }
  }
}
VS Code (.vscode/mcp.json)
{
  "servers": {
    "anyuse": {
      "type": "http",
      "url": "https://mcp.anyuse.app/mcp"
    }
  }
}

Claude Code

Run these commands from the project where you want to connect. Approve the Anyuse request in your browser, then return to Claude Code.

Claude Code
claude mcp add --transport http anyuse https://mcp.anyuse.app/mcp
claude mcp login anyuse

Codex

Add the server, sign in through the browser and check the connection with /mcp in Codex. For a config file, add the entry below to ~/.codex/config.toml.

Codex
codex mcp add anyuse --url https://mcp.anyuse.app/mcp
codex mcp login anyuse
~/.codex/config.toml
[mcp_servers.anyuse]
url = "https://mcp.anyuse.app/mcp"

Claude.ai

In Customize → Connectors, choose Add custom connector. Enter the endpoint above, choose OAuth and Register automatically if asked. Connect, then enable Anyuse in the conversation. Team workspaces may require an owner to add it first.

Claude Help Center

ChatGPT

In ChatGPT on the web, open Settings → Apps → Advanced settings and enable Developer mode if your workspace permits it. Create an app with the endpoint above and OAuth, then scan the tools and authorize Anyuse. If Create is missing, check workspace permissions with an admin.

OpenAI Help Center

Cherry Studio

Open Settings → MCP → MCP Servers → Add. Choose Streamable HTTP, enter the endpoint above, and add the Authorization header below with a dedicated execution API key. Save, enable the server and select it for your agent. Keep the key private when exporting settings.

HTTP
Authorization: Bearer <ANYUSE_API_KEY>

OpenClaw

With the Gateway running, register the remote HTTP server, sign in and probe the connection. If the mcp command is missing, check your OpenClaw version.

OpenClaw
openclaw mcp add anyuse --url https://mcp.anyuse.app/mcp --transport streamable-http --auth oauth
openclaw mcp login anyuse
openclaw mcp probe anyuse

Check the connection

Ask your client to call anyuse_search_capabilities with the argument below. A list of matching capabilities verifies read access without generating a quote or spending balance.

anyuse_search_capabilities
{"query":"redbook.note.search"}

If the editor does not open, use its configuration file. If tools are missing, enable Anyuse for this chat and refresh the tool list. For HTTP 401, reconnect with OAuth or check the execution key used in the header.

Choose a remote MCP connection with Streamable HTTP. Enter the endpoint below, open the authorization link, sign in to Anyuse and select Authorize connection. Your client receives credentials automatically.

Streamable HTTP / OAuth
{
  "url": "https://mcp.anyuse.app/mcp"
}

Manage or revoke access in Connected apps. Revocation stops new requests and token refreshes. Reconnecting does not restore old tokens; submitted tasks keep their status and billing. Clients authorized for offline access can refresh their credentials after website sign-out. Connected apps

Remote devices and headless clients

Clients that implement the standard OAuth device grant (RFC 8628) can display a link and an eight-character code. Open the link, sign in, confirm that the code matches your client and authorize. You can then close the page. Your browser never needs to reach the client or a localhost port; both only need HTTPS access to Anyuse. Support depends on the client.

Enter a device code

Discover device_authorization_endpoint and token_endpoint from the issuer metadata. Register a public native client with token_endpoint_auth_method=none, grant_types containing urn:ietf:params:oauth:grant-type:device_code and refresh_token, response_types=[] and scope=anyuse:mcp offline_access. Omit redirect_uris for a device-only client. Request codes using the first request below, then poll using the second.

RFC 8628 / Device authorization
curl https://anyuse.app/api/auth/device/code \
  --data-urlencode 'client_id=<CLIENT_ID>' \
  --data-urlencode 'scope=anyuse:mcp offline_access' \
  --data-urlencode 'resource=https://mcp.anyuse.app/mcp'
RFC 8628 / Token polling
curl https://anyuse.app/api/auth/oauth2/token \
  --data-urlencode 'grant_type=urn:ietf:params:oauth:grant-type:device_code' \
  --data-urlencode 'client_id=<CLIENT_ID>' \
  --data-urlencode 'device_code=<DEVICE_CODE>'

Display user_code with verification_uri (or verification_uri_complete). Keep device_code private in the client. Codes expire after 600 seconds; start polling after interval (5 seconds). On authorization_pending keep waiting; on slow_down add 5 seconds to all later intervals. Back off on connection timeouts and stop at expires_in. Stop on access_denied, expired_token or other errors. Never approve automatically. Use the returned access_token as the MCP Bearer token; offline_access allows rotating refresh tokens. Closing the page or signing out does not revoke a device connection.

API key alternative

For clients without MCP OAuth, create a separate execution API key in Console → API Keys. Store it in the client’s secret settings and send the Authorization header shown below. Never put credentials in a prompt, URL, screenshot or shared configuration.

Streamable HTTP
{
  "url": "https://mcp.anyuse.app/mcp",
  "headers": {
    "Authorization": "Bearer <ANYUSE_API_KEY>"
  }
}

Agent IM guide

Nineteen tools

ToolPurpose
anyuse_search_capabilitiesSearch enabled capabilities and current prices.
anyuse_get_capabilityRead input/output schemas, examples and MCP availability.
anyuse_create_quoteValidate input and save a quote without a paid call.
anyuse_executeSubmit a quote using an approved budget and an idempotency key.
anyuse_get_executionRead the execution status, cost_usd and public result.
anyuse_list_executionsRead the latest 50 execution summaries.
anyuse_cancel_executionRequest cancellation when can_cancel is true.
anyuse_get_accountCheck the connected account and balance.
anyuse_open_gsc_consoleOpen the interactive Google Search Console MCP App at zero cost. Manage access also allows sitemap submission and removal.
anyuse_im_request_bindingAsk the owner to bind this Agent using an approval link.
anyuse_im_list_conversationsList conversations available to this connection.
anyuse_im_inboxRead unread messages without acknowledging them.
anyuse_im_historyRead history and shared receipts.
anyuse_im_sendSend a message in an authorized room.
anyuse_im_mark_readAcknowledge selected messages for the shared identity.
anyuse_im_list_peersFind other bots in this workspace.
anyuse_im_open_dmOpen a direct conversation with a workspace bot.
anyuse_im_setup_guideGet setup instructions and notification status for this host.
anyuse_im_prepare_grok_notificationsPrepare owner approval for Grok notifications in selected conversations.

Discover, quote, approve, execute

  1. 01Use anyuse_search_capabilities, then anyuse_get_capability to read the input schema. Streaming operations are marked mcp_executable=false.
  2. 02Call anyuse_create_quote with operation and input. A quote expires after five minutes. If requires_budget=true, a zero quote means unknown cost, not free service.
  3. 03Obtain the user’s spending approval. Save quote_id, max_cost_usd as a decimal USD string, and a unique idempotency_key before calling anyuse_execute. A balance or a connection does not authorize spending.
  4. 04Query anyuse_get_execution using the returned id. Submission is not completion. Check status, cost_usd and result.data. Each budget applies to one execution, not cumulative spending.
Execution tool arguments (after approval)
{
  "quote_id": "<saved quote.id>",
  "max_cost_usd": "<approved decimal USD>",
  "idempotency_key": "<saved unique key>"
}

Recover without another paid request

On dispatch_unconfirmed or cancellation_unconfirmed, retain execution_id and query that execution first. If an explicit retry is appropriate, reuse the exact quote, budget and idempotency key. Never create a new paid request automatically. unknown is free; upstream review is internal. An in-progress cancellation must still reach a final outcome. JSON-RPC request IDs are not business idempotency keys. Disconnecting does not cancel an execution.

A tool can return isError=true even when HTTP is 200. Read structuredContent.error.code or the text result. SDK argument errors use invalid_request; capability input errors use invalid_input. A successful status query can describe a failed execution.

Supported operations and limits

  • Sync and async submissions are supported. New realtime stream operations are rejected before dispatch. Existing executions remain readable.
  • Call anyuse_get_execution with execution_id and file_index (starting at 0). Fetch download_url without an API key. Reuse a public link while the file is retained. A private link expires at expires_at. To refresh it, repeat the call for the same file.
  • Requests are limited to 64 KiB by default. For execution JSON above 256 KiB, follow the returned MCP cursor or read the original execution with an authorized API or CLI client.
  • JSON input normalizes integer-valued numbers such as 1.0 to 1. Money is a decimal string; exact large-number inputs need separate validation before support.

HTTP API quick start