Labsco
spences10 logo

JinaAI Grounding

โ˜… 1

from spences10

Enhances LLM responses with factual, real-time web content using Jina AI's grounding capabilities.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

mcp-jinaai-grounding


โš ๏ธ 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 Grounding API with LLMs. This server provides efficient and comprehensive web content grounding capabilities, optimized for enhancing LLM responses with factual, real-time web content.

Features

  • ๐ŸŒ Advanced web content grounding through Jina.ai Grounding API
  • ๐Ÿš€ Real-time content verification and fact-checking
  • ๐Ÿ“š Comprehensive web content analysis
  • ๐Ÿ”„ Clean format optimized for LLMs
  • ๐ŸŽฏ Precise content relevance scoring
  • ๐Ÿ—๏ธ Built on the Model Context Protocol

API

The server implements MCP tools for grounding LLM responses with web content:

ground_content

Ground LLM responses with real-time web content using Jina.ai Grounding.

Parameters:

  • query (string, required): The text to ground with web content
  • no_cache (boolean, optional): Bypass cache for fresh results. Defaults to false
  • format (string, optional): Response format ("json" or "text"). Defaults to "text"
  • 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. Update version in package.json
  2. Build the project:
pnpm run build
  1. Publish to npm:
pnpm run release