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

# Authentication

> Learn how to authenticate with the MCPfy API and generate MCP tokens

## Overview

The MCPfy API uses Bearer token authentication for secure access to all endpoints. You'll need to obtain an API key from your dashboard and use it to generate MCP tokens for your applications.

## Getting Your API Key

<Steps>
  <Step title="Login to MCPfy Dashboard">
    Navigate to [mcpfy.ai](https://mcpfy.ai) and log in to your account.
  </Step>

  <Step title="Access API Keys">
    In the sidebar, go to **API Keys** section.
  </Step>

  <Step title="Create or Use API Key">
    Either create a new API key or use an existing one from the list.

    <Warning>
      Store your API key securely and never expose it in client-side code or public repositories.
    </Warning>
  </Step>
</Steps>

## Using MCP Tokens

Once you have generated an MCP token, use it in subsequent API calls:

```bash theme={null}
curl --location 'https://api.mcpfy.ai/dev/v1/your-endpoint' \
--header 'Authorization: Bearer mcp_token_abc123xyz789' \
--header 'Content-Type: application/json'
```
