Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

apinow-fun-mcp

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

apinow-fun-mcp

APINow.fun MCP CLI

unpublished
latest
npmnpm
Version
1.5.1
Version published
Maintainers
0
Created
Source

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:

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

License

This tool is provided under the MIT License.

Keywords

mcp

FAQs

Package last updated on 15 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts