1.5.1 • Published 4 months ago

apinow-fun-mcp v1.5.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

APINow.fun MCP CLI

A command-line tool for connecting to the APINow.fun MCP server. This tool allows AI assistants like Claude to use APINow.fun APIs through the Model Context Protocol (MCP).

** Actively developing, join Telegram if you have questions https://t.me/+owjactcDFTo3Yzg5

Installation

No installation required! You can run this tool directly with npx:

npx apinow-fun-mcp --apiKey YOUR_API_KEY

Usage

npx apinow-fun-mcp --apiKey YOUR_API_KEY [options]

Options

  • -k, --apiKey <key>: Your APINow.fun API key (required)
  • -u, --url <url>: MCP server URL (default: "https://apinow.fun/api/mcp")
  • -p, --proxy <url>: Use a proxy server URL instead of direct connection
  • -s, --sse: Use Server-Sent Events (SSE) for streaming responses
  • -d, --debug: Enable debug mode
  • -t, --test <tool>: Test a specific tool with sample parameters
  • -P, --params <json>: JSON string of parameters for tool testing
  • -h, --help: Display help information
  • -V, --version: Display version number

Using with a Proxy

If you're running this tool in an environment that can't directly connect to APINow.fun, you can use a proxy server:

npx apinow-fun-mcp --apiKey YOUR_API_KEY --proxy http://your-proxy-server.com/api/mcp

This is particularly useful for:

  • Environments with network restrictions
  • Using a custom MCP server implementation
  • Connecting through a Next.js API route

Using Server-Sent Events (SSE)

For streaming responses and real-time updates, you can use the SSE option:

npx apinow-fun-mcp --apiKey YOUR_API_KEY --sse

This is particularly useful when:

  • Working with long-running API calls
  • Needing real-time progress updates
  • Using a server that supports SSE (like the Next.js API route)

Example: Using with a Next.js API Route with SSE

If you have a Next.js application with an MCP proxy API route that supports SSE:

npx apinow-fun-mcp --apiKey YOUR_API_KEY --proxy http://localhost:3000/api/mcp/sse --sse

Using with Claude

When configuring Claude to use APINow.fun, you can specify this tool as the MCP server:

npx apinow-fun-mcp --apiKey YOUR_API_KEY

Claude will then be able to use all the tools provided by APINow.fun.

Available Tools

APINow.fun provides a variety of API tools, including:

  • apinow_search: Search for APIs
  • apinow_list_categories: List API categories
  • apinow_get_schema: Get API schema
  • apinow_call: Call an API
  • apinow_estimate_cost: Estimate API call cost
  • apinow_get_usage: Get API usage statistics
  • apinow_get_balance: Get account balance
  • apinow_set_limits: Set usage limits
  • apinow_get_transaction_history: Get transaction history

Testing Tools

You can test a specific tool with the --test option:

npx apinow-fun-mcp --apiKey YOUR_API_KEY --test apinow_list_categories

To provide parameters:

npx apinow-fun-mcp --apiKey YOUR_API_KEY --test apinow_search --params '{"query":"weather"}'

Usage with Cursor

When using with Cursor, you should add the --json flag to ensure proper compatibility:

npx apinow-fun-mcp --apiKey YOUR_API_KEY --json

This will output all messages in JSON format, which is required for Cursor to properly parse the responses.

Troubleshooting

If you encounter issues:

  1. Enable debug mode with --debug to see detailed logs
  2. Check that your API key is valid
  3. Ensure you have internet access to reach APINow.fun
  4. If using a proxy, verify that the proxy URL is correct and accessible
  5. If using SSE, make sure the server supports Server-Sent Events

License

This tool is provided under the MIT License.

1.5.1

4 months ago

1.5.0

4 months ago

1.4.4

4 months ago

1.4.3

4 months ago

1.4.2

4 months ago

1.4.1

4 months ago

1.4.0

4 months ago

1.3.9

4 months ago

1.3.8

4 months ago

1.3.7

4 months ago

1.3.6

4 months ago

1.3.5

4 months ago

1.3.4

4 months ago

1.3.3

4 months ago

1.3.2

4 months ago

1.3.1

4 months ago

1.3.0

4 months ago

1.2.8

4 months ago

1.2.7

4 months ago

1.2.6

4 months ago

1.2.5

4 months ago

1.2.4

4 months ago

1.2.3

4 months ago

1.2.2

4 months ago

1.2.1

4 months ago

1.2.0

4 months ago

1.1.0

4 months ago

1.0.9

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago