apinow-fun-mcp v1.5.1
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 APIsapinow_list_categories
: List API categoriesapinow_get_schema
: Get API schemaapinow_call
: Call an APIapinow_estimate_cost
: Estimate API call costapinow_get_usage
: Get API usage statisticsapinow_get_balance
: Get account balanceapinow_set_limits
: Set usage limitsapinow_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.
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago