# Last30Days MCP setup

Configure agents that support HTTP MCP to use this endpoint:

```text
https://last30days.agentpaul.net/mcp
```

Use OAuth authorization for access. When your agent or MCP client opens the authorization page, sign in to AgentPaul if prompted. If you do not have an active session, use magic-link sign-in, return to the authorization page, review the Last30Days workspace access request, then choose Authorise.

After authorization, the MCP client stores and refreshes its own OAuth tokens. Do not ask the user to paste cookies, social credentials, browser sessions, API keys, or semi-permanent bearer tokens into chat.

Typed optional arguments:

- `query` is required.
- `sources`, `days`, `lookbackDays`, `depth`, `x_handle`, `x_related`, `x_backend`, `subreddits`, `tiktok_hashtags`, `tiktok_creators`, `ig_creators`, `github_user`, `github_repos`, `web_backend`, `auto_resolve`, JSON-object `plan`, `competitors`, `competitors_list`, `polymarket_keywords`, and `output` are optional.
- Default sources are `reddit`, `hackernews`, `polymarket`, and `x`. Use `github` or `grounding` only when the hosted backend reports those sources as available.
- Use `x_backend=grok` only when the user asks for X/Grok semantic search. Ordinary X source searches use the service feed provider order.
- Use `competitors` as an integer from 1 to 6 and `output` as `summary` or `full`.
- Do not ask the user to paste cookies, social credentials, browser sessions, API keys, social API keys, or bearer tokens.
- Ask whether the user wants summary or full results unless they already specified it.

The MCP tool will search Last30Days through the user's AgentPaul workspace balance. Results may be `complete`, `partial`, `running`, `failed`, or `expired`; disclose `partial` or `running` status, source warnings, and missing sources in any answer.

If your client cannot complete OAuth yet, use the unique-id URL sampler supplied by the user instead:

```text
https://last30days.agentpaul.net/tools/last30days/<workspaceUuid>/search?query=<url-encoded-query>
```