JM

joebuildsstuff/mcp-jina-ai

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

28 stars 11 forks 质量 66 趋势 11MIT

这是一个MCP服务器,通过Claude提供访问Jina AI强大Web服务的权限。该服务器实现了三个主要工具:

概览

这是一个MCP服务器,通过Claude提供访问Jina AI强大Web服务的权限。该服务器实现了三个主要工具: - 网页阅读与内容提取- 网页搜索 - 事实核查/基础 - 以优化的LLM格式从网页中提取内容 - 支持多种输出格式(默认、Markdown、HTML、文本、截图、页面快照) - 包含链接和图片的选项 - 能够生成图片的替代文本 - 缓存控制选项 - 使用 Jina AI 的搜索 API 进行网页搜索 - 可配置的结果数量(默认:5 个) - 支持图片保留和替代文本生成 - 多种返回格式(markdown、文本、html) - 返回带有标题、描述和内容的结构化结果 - 使用Jina AI的基础引擎进行事实核查陈述 - 提供事实性评分和支持证据 - 可选深度分析模式以进行更深入分析 - 返回引用中的关键引用及支持/矛盾分类 你需要一个Jina AI......

概述(AI 翻译)

这是一个MCP服务器,通过Claude提供访问Jina AI强大Web服务的权限。该服务器实现了三个主要工具:

  • 网页阅读与内容提取
  • 网络搜索
  • 事实核查/基础

特色

工具

read_webpage

  • 从网页中提取内容,格式为适合大型语言模型(LLM)优化
  • 支持多种输出格式(默认、Markdown、HTML、文本、截图、页面快照)
  • 包含链接和图片的选项
  • 能够生成图片的替代文本
  • 缓存控制选项

search_web

  • 使用 Jina AI 的搜索 API 进行网页搜索
  • 可配置结果数量(默认:5)
  • 支持图像保留和替代文本生成
  • 多种返回格式(markdown、文本、html)
  • 返回带有标题、描述和内容的结构化结果

fact_check

  • 使用 Jina AI 接地引擎的事实核查陈述
  • 提供事实性评分及支持证据
  • 可选深度分析模式,以实现更深入的分析
  • 返回带有关键引用和支持/矛盾分类的参考文献

布置

先决条件

你需要一个Jina AI API密钥才能使用这个服务器。免费获取一个,地址是https://jina.ai/

安装

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Jina AI MCP Server

An MCP server that provides access to Jina AI’s powerful web services through Claude. This server implements three main tools:

  • Web page reading and content extraction
  • Web search
  • Fact checking/grounding

Features

Tools

read_webpage

  • Extract content from web pages in a format optimized for LLMs
  • Supports multiple output formats (Default, Markdown, HTML, Text, Screenshot, Pageshot)
  • Options for including links and images
  • Ability to generate alt text for images
  • Cache control options

search_web

  • Search the web using Jina AI’s search API
  • Configurable number of results (default: 5)
  • Support for image retention and alt text generation
  • Multiple return formats (markdown, text, html)
  • Returns structured results with titles, descriptions, and content

fact_check

  • Fact-check statements using Jina AI’s grounding engine
  • Provides factuality scores and supporting evidence
  • Optional deep-dive mode for more thorough analysis
  • Returns references with key quotes and supportive/contradictory classification

Setup

Prerequisites

You’ll need a Jina AI API key to use this server. Get one for free at https://jina.ai/

Installation

There are two ways to use this server:

Installing via Smithery

To install Jina AI for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install jina-ai-mcp-server --client claude

Add this configuration to your Claude Desktop config file:

{
  "mcpServers": {
    "jina-ai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "jina-ai-mcp-server"
      ],
      "env": {
        "JINA_API_KEY": ""
      }
    }
  }
}

Option 2: Local Installation

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Build the server:
npm run build
  1. Add this configuration to your Claude Desktop config:
{
  "mcpServers": {
    "jina-ai-mcp-server": {
      "command": "node",
      "args": [
        "/path/to/jina-ai-mcp-server/dist/index.js"
      ],
      "env": {
        "JINA_API_KEY": ""
      }
    }
  }
}

Config File Location

On MacOS:

~/Library/Application Support/Claude/claude_desktop_config.json

On Windows:

%APPDATA%/Claude/claude_desktop_config.json

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:

在 GitHub 查看完整 README

安装

npx -y jina-ai-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "jina-ai-mcp-server": { "command": "npx", "args": [ "-y", "jina-ai-mcp-server" ], "env": { "JINA_API_KEY": "<YOUR_KEY>" } } } }