n8n-nodes-megasearch
v1.0.1
Published
n8n community node for MegaSearch - AI-powered metasearch engine that queries multiple sources and synthesizes comprehensive answers with citations
Downloads
186
Maintainers
Readme
n8n-nodes-megasearch
This is an n8n community node for MegaSearch - an AI-powered metasearch engine that queries multiple sources simultaneously and synthesizes comprehensive answers with citations.
MegaSearch | n8n Community Nodes | API Documentation
Features
- Multi-Source Search: Query 10+ search sources in parallel (web, academic, news, Reddit, YouTube, and more)
- AI-Powered Synthesis: Get comprehensive answers with proper citations, not just links
- Iterative Refinement: Up to 5 search iterations to find the perfect answer
- n8n AI Agent Compatible: Use as a tool in n8n AI workflows with
usableAsTool: true - Simple API: Just provide a query, get a complete answer
Installation
In n8n (Recommended)
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-megasearchand click Install
Using npm
npm install n8n-nodes-megasearchSelf-hosted n8n
Add the package to your n8n installation:
cd ~/.n8n
npm install n8n-nodes-megasearchThen restart n8n.
Credentials
To use this node, you need a MegaSearch API key:
- Create an account: Visit megasearch.prodevs.in and sign in with Google
- Get your API key: Go to Dashboard > Tokens and generate an API key
- Configure in n8n:
- Go to Credentials > Add Credential > MegaSearch API
- Enter your Base URL (default:
https://megasearch.prodevs.in) - Enter your API Key
- Click Save
The credential will automatically validate by checking the /health endpoint.
Node Operations
Search
Execute an AI-powered search query across multiple sources.
Parameters:
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | Query | String | Yes | The search query (max 2000 characters) |
Options:
| Option | Type | Default | Description | |--------|------|---------|-------------| | Include Full Content | Boolean | false | Include full extracted content from sources | | Timeout (Seconds) | Number | 120 | Maximum time to wait (30-300 seconds) |
Output:
{
"query": "What are the latest advances in quantum computing?",
"answer": "Recent advances in quantum computing include... [1] [2] [3]",
"sources": [
{
"index": 1,
"title": "IBM Unveils New Quantum Processor",
"url": "https://example.com/article",
"snippet": "IBM has announced..."
}
],
"sourceCount": 12,
"usage": {
"credits_used": 1,
"credits_remaining": 99,
"plan": "free"
}
}Usage Examples
Basic Search Workflow
- Add a Manual Trigger node
- Add a MegaSearch node
- Configure the query:
What are the best practices for TypeScript in 2024? - Execute the workflow
Use with AI Agent
MegaSearch is designed to work as a tool in n8n AI workflows:
- Add an AI Agent node
- Add MegaSearch as a tool
- The agent can now use MegaSearch to answer research questions
Chain with Other Nodes
[HTTP Request] → [MegaSearch] → [Slack]Get URLs from an API, research them with MegaSearch, and post summaries to Slack.
Pricing
MegaSearch offers a free tier and paid plans:
| Plan | Credits/Month | Features | |------|---------------|----------| | Free | 25/day, 100/month | API + MCP access | | Starter | 1,000/month | No daily cap, higher RPS | | Pro | 5,000/month | Priority support | | Scale | 20,000/month | Enterprise features |
Check megasearch.prodevs.in for current pricing.
Error Handling
The node handles common errors gracefully:
| Status Code | Error | Solution | |-------------|-------|----------| | 401 | Invalid API key | Check your credentials | | 402 | Insufficient credits | Top up your account | | 429 | Rate limit exceeded | Wait before retrying | | 500 | Server error | Retry or contact support |
Enable Continue On Fail to handle errors in your workflow without stopping execution.
Development
Local Development
# Clone the repository
git clone https://github.com/ProDevs-Kol/n8n-nodes-megasearch.git
cd n8n-nodes-megasearch
# Install dependencies
npm install
# Start n8n with the node loaded
npm run devBuild
npm run buildLint
npm run lint
npm run lint:fixResources
Support
- Issues: GitHub Issues
- MegaSearch Support: [email protected]
License
Built with the "Fire Everything" philosophy by ProDevs
