API Keys Documentation

Learn how to create and use API keys with APINow.fun

Overview

API keys are used to authenticate with the APINow.fun MCP server. Each API key is associated with a wallet address and has configurable spending limits and access controls.

API keys are generated securely and are only shown once during creation. Make sure to save your API key in a secure location.

Creating an API Key

To create an API key, follow these steps:

  1. Go to the API Keys page.
  2. Connect your Ethereum wallet.
  3. Click the "Create New API Key" button.
  4. Enter a name for your API key.
  5. Configure the spending limits and access controls.
  6. Click "Create API Key".
  7. Save the API key that is displayed. It will not be shown again.

Using an API Key

To use an API key with the APINow.fun MCP server, include it in the Authorization header of your requests:

Authorization: Bearer YOUR_API_KEY

Example using fetch:

fetch('https://www.apinow.fun/api/mcp', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
})
.then(response => response.json())
.then(data => console.log(data));

API Key Configuration

API keys can be configured with the following settings:

Security Considerations

Keep your API keys secure:

MCP Integration

API keys are used to authenticate with the APINow.fun MCP server, which implements the Model Control Protocol. This allows AI agents to discover and use APIs through a token-based vending machine model.

Connecting with Cursor or Claude Desktop

APINow.fun provides seamless integration with Cursor and Claude Desktop through the Model Control Protocol (MCP). Follow these steps to connect:

Step 1: Create an API Key

If you haven't already, create an API key as described above.

Step 2: Run the Connection Command

Open your terminal and run the following command:

npx -y @smithery/cli@latest run apinow-fun --config "{\"apinowfunApiKey\":\"YOUR_API_KEY\"}"

Replace YOUR_API_KEY with your actual API key.

Step 3: Use in Your Application

Once connected, your AI assistant will have access to all APIs available through APINow.fun.

You can now ask your AI assistant to perform tasks using the available APIs.

Important Notes

  • Keep the terminal window running while using the MCP connection
  • Your API usage will count against your monthly limits
  • You can monitor your API usage on the API Keys page

For more detailed information about the MCP integration and available APIs, see the MCP Documentation.