Labsco
spences10 logo

JinaAI Search

โ˜… 3

from spences10

Efficient web search optimized for LLM-friendly content using the Jina AI API.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅAccount requiredAdvanced setup

mcp-jinaai-search


โš ๏ธ Notice

This repository is no longer maintained.

The functionality of this tool is now available in mcp-omnisearch, which combines multiple MCP tools in one unified package.

Please use mcp-omnisearch instead.


A Model Context Protocol (MCP) server for integrating Jina.ai's Search API with LLMs. This server provides efficient and comprehensive web search capabilities, optimised for retrieving clean, LLM-friendly content from the web.

Features

  • ๐Ÿ” Advanced web search through Jina.ai Search API
  • ๐Ÿš€ Fast and efficient content retrieval
  • ๐Ÿ“„ Clean text extraction with preserved structure
  • ๐Ÿง  Content optimised for LLMs
  • ๐ŸŒ Support for various content types including documentation
  • ๐Ÿ—๏ธ Built on the Model Context Protocol
  • ๐Ÿ”„ Configurable caching for performance
  • ๐Ÿ–ผ๏ธ Optional image and link gathering
  • ๐ŸŒ Localisation support through browser locale
  • ๐ŸŽฏ Token budget control for response size

API

The server implements a single MCP tool with configurable parameters:

Search the web and get clean, LLM-friendly content using Jina.ai Reader. Returns top 5 results with URLs and clean content.

Parameters:

  • query (string, required): Search query
  • format (string, optional): Response format ("json" or "text"). Defaults to "text"
  • no_cache (boolean, optional): Bypass cache for fresh results. Defaults to false
  • token_budget (number, optional): Maximum number of tokens for this request
  • browser_locale (string, optional): Browser locale for rendering content
  • stream (boolean, optional): Enable stream mode for large pages. Defaults to false
  • gather_links (boolean, optional): Gather all links at the end of response. Defaults to false
  • gather_images (boolean, optional): Gather all images at the end of response. Defaults to false
  • image_caption (boolean, optional): Caption images in the content. Defaults to false
  • enable_iframe (boolean, optional): Extract content from iframes. Defaults to false
  • enable_shadow_dom (boolean, optional): Extract content from shadow DOM. Defaults to false
  • resolve_redirects (boolean, optional): Follow redirect chains to final URL. Defaults to true

Development

Setup

  1. Clone the repository
  2. Install dependencies:
pnpm install
  1. Build the project:
pnpm run build
  1. Run in development mode:
pnpm run dev

Publishing

  1. Create a changeset:
pnpm changeset
  1. Version the package:
pnpm version
  1. Build and publish:
pnpm release