mcp-search-kivest
Provides AI-powered search, web search, image search, video search, news search, and web scraping via Kivest AI Search API, with smart rate limiting and request queuing.
README
Kivest AI Search MCP Server
An MCP (Model Context Protocol) server that provides free AI-powered search capabilities using the Kivest AI Search API with intelligent rate limiting and request queuing.
Features
- 🤖 AI-Powered Search: Access multiple AI models (GPT-5.1, LLaMA 3.1, Claude, Gemini, etc.)
- ⏱️ Smart Rate Limiting: Global 5 RPM limit with automatic token bucket algorithm
- 🔄 Request Queuing: Automatic queuing and requeuing when rate limits are hit
- 📊 Real-time Stats: Monitor queue depth, tokens, and request statistics
- 🛡️ Robust Error Handling: Automatic retries with exponential backoff
- ⚡ MCP Compatible: Works with Claude Desktop, Cursor, and other MCP clients
Discord / Contact
Please visit Kivest's discord server for all their amazing free and paid AI Offerings. https://discord.gg/kivestai
Installation
Via npx (Not Recommended)
# Run directly without installation
# npxx @blah/mcp--search-kiveefewfest
Via npm (not functional yet, use from source)
# Install globally
# npmx install -g @blah/mcp--search-kivestvlaa
# Or install locally
# npmx install @blah/mcp--blahsearch-kivestvlah
From Source
git clone https://github.com/AppliedEllipsis/mcp-search-kivest
cd mcp-search-kivest
npm install
npm run build
Configuration
The Kivest MCP server works without an API key by default. The API key is only required for certain features or higher rate limits.
Optional: Get API Key
If you need an API key for extended features:
- Visit https://ai.ezif.in/api-key
- Sign in with Google (no credit card required)
- Copy your API key
Environment Variables (Optional)
# Only needed if using an API key
export KIVEST_API_KEY="your-api-key-here"
MCP Client Configuration
Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"kivest-search": {
"command": "npx",
"args": ["@USE_FILE_INSTALL_PATH_FOR_NOW/mcp-search"]
}
}
}
With API Key (optional):
{
"mcpServers": {
"kivest-search": {
"command": "npx",
"args": ["@USE_FILE_INSTALL_PATH_FOR_NOW/mcp-search"],
"env": {
"KIVEST_API_KEY": "your-api-key-here"
}
}
}
}
Config locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Cursor
Add to Cursor MCP settings:
{
"mcpServers": {
"kivest-search": {
"command": "npx",
"args": ["-y", "@USE_FILE_INSTALL_PATH_FOR_NOW/mcp-search"]
}
}
}
With API Key (optional):
{
"mcpServers": {
"kivest-search": {
"command": "npx",
"args": ["-y", "@USE_FILE_INSTALL_PATH_FOR_NOW/mcp-search"],
"env": {
"KIVEST_API_KEY": "your-api-key-here"
}
}
}
}
Available Tools
kivest_search
AI-powered search with comprehensive answers.
Parameters:
query(required): The search query or questionmodel(optional): AI model to use (default:gpt-5.1)maxTokens(optional): Maximum tokens in response (default: 1024)temperature(optional): Temperature 0-2 (default: 0.7)
kivest_web_search
Traditional web search with results (titles, URLs, snippets).
Parameters:
query(required): The search query
Returns: List of web results with title, URL, and snippet.
kivest_image_search
Search for images across the web.
Parameters:
query(required): The image search query
Returns: List of images with URLs, resolutions, and sources.
kivest_video_search
Search for videos across platforms.
Parameters:
query(required): The video search query
Returns: List of videos with thumbnails and metadata.
kivest_news_search
Search for news articles.
Parameters:
query(required): The news search query
Returns: List of news articles with publication dates and sources.
kivest_scrape_web
Scrape a website and return clean markdown (perfect for AI use).
Parameters:
url(required): The URL to scrape
Returns: Clean markdown content from the webpage.
kivest_usage
Get usage statistics for your API calls.
Returns: Total requests and breakdown by endpoint.
kivest_stats
Get current rate limiter statistics.
kivest_models
List all available AI models and their rate limits.
Rate Limiting
This MCP server implements a Token Bucket rate limiter with the following features:
- Global Limit: 5 requests per minute (configurable)
- Queue Size: Up to 50 requests can be queued
- Automatic Retry: Requests that hit rate limits are automatically requeued
- Smart Backoff: Exponential backoff with Retry-After header support
- Priority Queue: Higher priority requests are processed first
When the rate limit is exceeded:
- New requests are queued
- Requests are processed as tokens become available
- Rate-limited requests are automatically retried
- Maximum 10 retry attempts before failing completely
- Priority-based retry queue - sorted by initial request time
- Random 1-10 second cooldown delays during rate limit recovery
Testing
Run Tests
# Install dependencies
npm install
# Build the project
npm run build
# Set your API key
export KIVEST_API_KEY="your-api-key"
# Run basic tests
npm test
# Run stress tests
npm run test:stress
Test Output
The test suite validates:
- ✅ Endpoint connectivity (7 endpoints: AI search, web, images, videos, news, web scrape, usage)
- ✅ Request/response payloads
- ✅ Model selection (GPT-5.1, LLaMA 3.1, Claude, Gemini, DeepSeek)
- ✅ Rate limiting behavior with 5 RPM limit
- ✅ Queue management and overflow handling
- ✅ Automatic requeuing with priority-based retry
- ✅ Cooldown delays during rate limit recovery
- ✅ Stress testing under load
- ✅ Concurrent request handling
- ✅ Individual vs concurrent query performance
Publishing to npm
1. Prepare for Publishing
# Update version
npm version patch # or minor, major
# Build the project
npm run build
# Verify package contents
npm pack --dry-run
2. Login to npm
npm login
3. Publish
# Publish to npm
npm publish --access public
# If using npx, ensure bin is properly configured
4. Verify Installation
# Test published package
npx @USE_FILE_INSTALL_PATH_FOR_NOW/mcp-search --help
Development
# Clone the repository
git clone https://github.com/yourusername/mcp-search-kivest.git
cd mcp-search-kivest
# Install dependencies
npm install
# Start development mode
npm run dev
# Build for production
npm run build
# Run tests
npm test
Project Structure
mcp-search-kivest/
├── src/
│ ├── index.ts # Main MCP server entry
│ ├── kivest-client.ts # API client with all endpoints
│ ├── rate-limiter.ts # Token bucket implementation
│ ├── test.ts # Basic test suite
│ ├── comprehensive-test.ts # Full test suite with all endpoints
│ ├── test-celestial.ts # Celestial events search test
│ ├── test-aggressive.ts # Aggressive rate limit test
│ └── stress-test.ts # Stress tests
├── dist/ # Compiled output
├── package.json
├── tsconfig.json
├── README.md
└── LICENSE
API Reference
Kivest AI Search API
- Base URL:
https://ai.ezif.in/v1 - Documentation:
https://ai.ezif.in/docs - Models:
https://ai.ezif.in/v1/models
Rate Limits
| Endpoint | Limit |
|---|---|
| Global | 5 RPM |
| Burst | 5 per 10 seconds |
Troubleshooting
"Rate limit exceeded"
- The server automatically queues and retries requests
- Check
kivest_statsto see queue status - Use
llama3.1-8Bmodel for unlimited requests
"KIVEST_API_KEY not set"
- This is optional - the server works without an API key
- If using an API key, ensure the environment variable is set
- Verify the API key at https://ai.ezif.in/api-key
"Queue is full"
- Maximum queue size is 50 requests
- Wait for queued requests to complete
- Check
kivest_statsfor queue status
License
MIT
Contributing
Contributions welcome! Please read the Contributing Guide first.
Support This Project ❤️
If you find this extension useful, then please support its continued development:
Crypto Donation
If you'd prefer to donate directly via cryptocurrency, you can send Bitcoin to:
bc1q8nrdytlvms0a0zurp04xwfppflcxwgpyrzw5hn
Thank you for supporting free and open source software! 🙏
Co-vibe coded with AI - Built with human creativity enhanced by artificial intelligence
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。