# Onepage — how to use (mcp.ai)

Connect your Onepage account and use 2 tools for productivity straight from your AI agent. Connect with your own API key. API for enriching user and company data, providing endpoints for token validation and generic search.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_onepage?ms=1787295900000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `onepage_search_input_post_request`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/onepage`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/onepage/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/onepage/search/input/post/request` — The SearchInput endpoint allows users to perform a search query within the OnePage platform. It accepts a required search string and optional parameters for language and output format customization. T
  - body: { l?: string, o?: string, s: string }
- `POST https://api.mcp.ai/api/onepage/token/details/request` — Retrieves detailed information about a specific token in the OnePage system. This endpoint should be used when you need to obtain comprehensive data about a token, such as its associated permissions, 
  - body: { token: string }

## Example prompts
- "What can I do in Onepage?"
- "Show me a summary of my Onepage account"

## More
- Page: https://mcp.ai/onepage
- Agent spec (llms.txt): https://mcp.ai/onepage/llms.txt
- Postman collection: https://mcp.ai/onepage/postman.json
