Read as needed; not a required onboarding step. Path：[Data Access Path](/en/docs)

# MCP Integration

Connect a client supporting Streamable HTTP and Bearer headers without downloading server source.
Obtain a [Consumer API Key](/en/docs/portal) first.

## Connect

Add a remote MCP server to your client:

| Setting | Value |
| --- | --- |
| Endpoint | `https://www.marsyoo.com/mcp` |
| Transport | Streamable HTTP |
| Header name | `Authorization` |
| Header value | `Bearer <your Consumer API Key>` |

Inject the key through secure client settings or environment variables; do not put the full key in public configuration or conversations.
If your client cannot send authorization headers, use a [Consumer SDK](/en/docs/sdk) or the [HTTP API](/en/docs/quickstart).

## Verify

1. Refresh the tool list after connecting and confirm `whale_search` is available.
2. Call it with `{"query":"AI","mode":"keyword","limit":10}`.
3. If results exist, pass a returned `document_id` to `whale_get_document_content`.

A successful tool response and readable content verify integration. Empty search results do not mean the connection failed; check the query and subscription.

## Tools

| Tool | Purpose | Main inputs |
| --- | --- | --- |
| `whale_search` | Keyword, vector, or hybrid search | `query`, `mode`, `platforms`, `languages`, `published_from`, `published_to`, `limit` |
| `whale_get_document` | Metadata and current version | `document_id` |
| `whale_get_document_content` | Current or specified full body | `document_id`, `version_id` |

Search defaults to `hybrid` and 20 results, with a maximum of 100. The same subscription, field permissions, and rate limits apply as direct API calls.

For `401`, check the injected key; for `403`, check the subscription; for `429`, honor `Retry-After`.
See [Unified Search](/en/docs/search) for parameters and [Documents](/en/docs/documents) for bodies and versions.

## Continue Your Task

[Return to the integration path](/en/docs); return to your task after consulting this reference.