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

# Introduction

> Monetize your APIs and MCP tools with x402 micropayments

Foldset makes it easy to monetize your APIs and MCP tools using [x402](https://x402.org), the open protocol for HTTP micropayments. Integrate our SDK into your product and start earning from every request.

## How it works

1. **Sign up** at [foldset.com](https://foldset.com)
2. **Check your robots.txt**: Foldset automatically scans your `robots.txt` for rules that block AI crawlers (GPTBot, ClaudeBot, etc.). If bots are blocked, you'll see exactly which ones and the offending rules so you can update your `robots.txt` and start earning.
3. **Integrate** our SDK into your app
4. **Configure** which API endpoints or MCP tools to protect and set prices in the dashboard
5. **Earn** per request and withdraw to your bank account

## What can you protect?

* **APIs**: REST endpoints, data feeds, search APIs
* **MCP servers**: individual tool calls and resource reads on your Model Context Protocol servers

## Pick your integration

### Frameworks

Install a package and add a few lines of code to your app.

<CardGroup cols={2}>
  <Card title="Next.js" icon="react" href="/frameworks/nextjs">
    Add Foldset middleware to your Next.js app.
  </Card>

  <Card title="Express" icon="node-js" href="/frameworks/express">
    Add Foldset middleware to your Express app.
  </Card>

  <Card title="Hono" icon="bolt" href="/frameworks/hono">
    Add Foldset middleware to your Hono app.
  </Card>

  <Card title="FastAPI" icon="python" href="/frameworks/fastapi">
    Add Foldset middleware to your FastAPI app.
  </Card>

  <Card title="Flask" icon="python" href="/frameworks/flask">
    Add Foldset middleware to your Flask app.
  </Card>

  <Card title="Other Languages" icon="code" href="/frameworks/other">
    Go, Rust, and more. Currently in beta.
  </Card>
</CardGroup>
