spences10

mcp-jinaai-reader

Community spences10
Updated

MCP server for JinaAI reader

mcp-jinaai-reader

A Model Context Protocol (MCP) server for integrating Jina.ai's ReaderAPI with LLMs. This server provides efficient and comprehensive webcontent extraction capabilities, optimized for documentation and webcontent analysis.

Features

  • ๐Ÿ“š Advanced web content extraction through Jina.ai Reader API
  • ๐Ÿš€ Fast and efficient content retrieval
  • ๐Ÿ“„ Complete text extraction with preserved structure
  • ๐Ÿ”„ Clean format optimized for LLMs
  • ๐ŸŒ Support for various content types including documentation
  • ๐Ÿ—๏ธ Built on the Model Context Protocol

Configuration

This server requires configuration through your MCP client. Here areexamples for different environments:

Cline Configuration

Add this to your Cline MCP settings:

{
	"mcpServers": {
		"jinaai-reader": {
			"command": "node",
			"args": ["-y", "mcp-jinaai-reader"],
			"env": {
				"JINAAI_API_KEY": "your-jinaai-api-key"
			}
		}
	}
}

Claude Desktop with WSL Configuration

For WSL environments, add this to your Claude Desktop configuration:

{
	"mcpServers": {
		"jinaai-reader": {
			"command": "wsl.exe",
			"args": [
				"bash",
				"-c",
				"JINAAI_API_KEY=your-jinaai-api-key npx mcp-jinaai-reader"
			]
		}
	}
}

Environment Variables

The server requires the following environment variable:

  • JINAAI_API_KEY: Your Jina.ai API key (required)

API

The server implements a single MCP tool with configurable parameters:

read_url

Convert any URL to LLM-friendly text using Jina.ai Reader.

Parameters:

  • url (string, required): URL to process
  • no_cache (boolean, optional): Bypass cache for fresh results.Defaults to false
  • format (string, optional): Response format ("json" or "stream").Defaults to "json"
  • timeout (number, optional): Maximum time in seconds to wait forwebpage load
  • target_selector (string, optional): CSS selector to focus onspecific elements
  • wait_for_selector (string, optional): CSS selector to wait forspecific elements
  • remove_selector (string, optional): CSS selector to excludespecific elements
  • with_links_summary (boolean, optional): Gather all links at theend of response
  • with_images_summary (boolean, optional): Gather all images at theend of response
  • with_generated_alt (boolean, optional): Add alt text to imageslacking captions
  • with_iframe (boolean, optional): Include iframe content inresponse

Development

Setup

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

Publishing

  1. Update version in package.json
  2. Build the project:
npm run build
  1. Publish to npm:
npm publish

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see the LICENSE file for details.

Acknowledgments

MCP Server ยท Populars

MCP Server ยท New

    chatmcp

    mcpso

    directory for Awesome MCP Servers

    Community chatmcp
    TBXark

    MCP Proxy Server

    An MCP proxy server that aggregates and serves multiple MCP resource servers through a single HTTP server.

    Community TBXark
    ttommyth

    interactive-mcp

    Ask users questions from your LLM! interactive-mcp: Local, cross-platform MCP server for interactive prompts, chat & notifications.

    Community ttommyth
    lpigeon

    ros-mcp-server

    The ROS MCP Server is designed to support robots in performing complex tasks and adapting effectively to various environments by providing a set of functions that transform natural language commands, entered by a user through an LLM, into ROS commands for robot control.

    Community lpigeon
    emicklei

    melrose-mcp

    interactive programming of melodies, producing MIDI

    Community emicklei