> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Endpoints

> Build your own endpoints that appear automatically in MCP Server — no server changes required

## Custom Endpoints in MCP

<Note>
  Custom endpoints created through the **Custom Endpoint Builder** are automatically available in the MCP Server — no server changes required.
</Note>

The Anysite MCP Server dynamically loads all endpoints from the OpenAPI specification at startup. This means any custom endpoint you create through the Custom Endpoint Builder instantly becomes available to all your AI agents.

***

## How It Works

<Steps>
  <Step title="Create a custom endpoint">
    Use the [Custom Endpoint Builder](https://app.anysite.io) to define your parser — specify the target URL, data extraction rules, and output schema.
  </Step>

  <Step title="Endpoint appears in MCP">
    The MCP Server dynamically loads it from the OpenAPI specification. No server restart or configuration changes needed.
  </Step>

  <Step title="Discover and use">
    Your AI agent can find the new endpoint via `discover()` and call it via `execute()`:

    ```text theme={null}
    discover("your_source", "your_category")
      → Shows your custom endpoint with parameters

    execute("your_source", "your_category", "your_endpoint", {params})
      → Fetches data using your custom parser
    ```
  </Step>
</Steps>

***

## Features

<CardGroup cols={2}>
  <Card title="Zero Deployment" icon="bolt">
    Custom endpoints appear instantly in MCP — no code, no deployment, no server updates.
  </Card>

  <Card title="Full MCP Support" icon="plug">
    Same caching, pagination (`get_page`), analysis (`query_cache`), and export (`export_data`) as built-in endpoints.
  </Card>

  <Card title="All Clients" icon="desktop">
    Works with Claude Desktop, Claude Code, Cursor, n8n, and any MCP-compatible client.
  </Card>

  <Card title="Unlimited Plan Compatible" icon="infinity">
    Custom endpoints are included in the MCP Unlimited Plan — no additional costs.
  </Card>
</CardGroup>

***

## Example

Suppose you've built a custom parser for a job board:

```text theme={null}
1. discover("my_jobboard", "search")
   → Shows: endpoint "search_jobs" with params: query, location, salary_min

2. execute("my_jobboard", "search", "search_jobs", {
     query: "python developer",
     location: "Berlin",
     salary_min: 60000
   })
   → Returns job listings + cache_key

3. query_cache(cache_key, sort_by="salary", sort_order="desc", limit=10)
   → Top 10 highest-paying positions

4. export_data(cache_key, "csv")
   → Download all results as CSV
```

***

## Getting Started

<Card title="Custom Endpoint Builder" icon="wrench" href="https://app.anysite.io">
  Create your first custom endpoint at app.anysite.io
</Card>
