AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified Apache-2.0 Self-run

Jinaai Mcp Server

mcp-cyanheads-jinaai-mcp-server · by cyanheads

A Model Context Protocol (MCP) server that provides intelligent web reading capabilities using the Jina AI Reader API. It extracts clean, LLM-ready content from any URL.

No reviews yet
0 installs
14 views
0.0% view→install

Install

$ agentstack add mcp-cyanheads-jinaai-mcp-server

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-cyanheads-jinaai-mcp-server)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
11mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Jinaai Mcp Server? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

JinaAI MCP Server

An intelligent web reader tool powered by the Jina.ai Reader API, delivered as a production-grade Model Context Protocol (MCP) server.

[](https://www.typescriptlang.org/) [](https://modelcontextprotocol.io/) [](./CHANGELOG.md) [](./vitest.config.ts) [](https://opensource.org/licenses/Apache-2.0) [](https://github.com/cyanheads/jinaai-mcp-server/issues) [](https://github.com/cyanheads/jinaai-mcp-server)

Model Context Protocol (MCP) Server providing a robust, developer-friendly interface to the Jina.ai Reader API. Enables LLMs and AI agents to read, process, and understand content from any webpage programmatically.

Built on the cyanheads/mcp-ts-template, this server follows a modular architecture with robust error handling, logging, and security features.

🚀 Core Capabilities: Jina AI Tools 🛠️

This server equips your AI with a specialized tool to interact with web content:

| Tool Name | Description | Example | | :---------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------- | | [jinaai_read_webpage](./src/mcp-server/tools/jinaReader/) | Extracts and processes the main content from a given URL using Jina AI's ReaderLM engine. It returns a clean, markdown-formatted text representation of the content. | [View Example](./docs/jinaaireadwebpage_example.md) |


Table of Contents

| [Overview](#overview) | [Features](#features) | [Installation](#installation) | | :------------------------------ | :-------------------------------------- | :--------------------------------------------- | | [Configuration](#configuration) | [Project Structure](#project-structure) | [Development & Testing](#development--testing) | | [License](#license) | | |

Overview

The JinaAI MCP Server acts as a bridge, allowing applications that understand the Model Context Protocol (MCP)—like advanced AI assistants, IDE extensions, or custom research tools—to interact directly and efficiently with web content.

Instead of dealing with raw HTML or complex scraping logic, your agents can leverage this server to:

  • Automate Information Gathering: Read articles, documentation, and other web content programmatically.
  • Gain Deeper Understanding: Access clean, LLM-ready text from any URL without leaving the host application.
  • Integrate Web Content into AI Workflows: Enable LLMs to perform research, summarize articles, and incorporate real-time web data into their responses.

> Developer Note: This repository includes a [.clinerules](./.clinerules/clinerules.md) file that serves as a developer cheat sheet for your LLM coding agent with quick reference for the codebase patterns, file locations, and code snippets.

Features

Core Utilities

Leverages the robust utilities provided by the mcp-ts-template:

  • Logging: Structured, configurable logging with sensitive data redaction.
  • Error Handling: Centralized error processing and standardized error types (McpError).
  • Configuration: Environment variable loading (dotenv) with validation using Zod.
  • Input Validation: Uses zod for all tool input schemas.
  • Request Context: End-to-end operation tracking via unique request IDs.
  • Type Safety: Enforced by TypeScript and Zod schemas.
  • HTTP Transport: High-performance HTTP server using Hono, featuring session management and authentication support.
  • Authentication: Robust authentication layer supporting JWT and OAuth 2.1.
  • Observability: Integrated OpenTelemetry for distributed tracing and metrics.

Jina AI Integration

  • Intelligent Content Extraction: Utilizes Jina's readerlm-v2 engine to parse main content and remove boilerplate.
  • Multiple Formats: Supports output in Markdown, HTML, or plain text.
  • Flexible Options: Control over including links, images, and using the cache.

Installation

Prerequisites

MCP Client Settings

Add the following to your MCP client's configuration file (e.g., cline_mcp_settings.json). This configuration uses npx to run the server, which will automatically install the package if not already present. The JINA_API_KEY is required for the server to function.

{
  "mcpServers": {
    "jinaai-mcp-server": {
      "command": "npx",
      "args": ["@cyanheads/jinaai-mcp-server"],
      "env": {
        "MCP_TRANSPORT_TYPE": "http",
        "MCP_HTTP_PORT": "3018",
        "JINA_API_KEY": "YOUR_JINA_API_KEY_HERE"
      }
    }
  }
}

From Source

  1. Clone the repository:

``bash git clone https://github.com/cyanheads/jinaai-mcp-server.git cd jinaai-mcp-server ``

  1. Install dependencies:

``bash npm install ``

  1. Build the project:

``bash npm run build ``

Configuration

Environment Variables

Configure the server using environment variables. For local development, create a .env file at the project root.

| Variable | Description | Default | | :------------------- | :------------------------------------------------------- | :------------ | | JINA_API_KEY | Required. Your API key for the Jina AI service. | (none) | | MCP_TRANSPORT_TYPE | Transport mechanism: stdio or http. | stdio | | MCP_HTTP_PORT | Port for the HTTP server (if MCP_TRANSPORT_TYPE=http). | 3018 | | LOGS_DIR | Directory for log file storage. | logs/ | | NODE_ENV | Runtime environment (development, production). | development |

Project Structure

The codebase follows a modular structure within the src/ directory:

src/
├── index.ts              # Entry point: Initializes and starts the server
├── config/               # Configuration loading (env vars)
│   └── index.ts
├── mcp-server/           # Core MCP server logic and capability registration
│   ├── server.ts         # Server setup, tool registration
│   └── tools/            # MCP Tool implementations
│       └── jinaReader/   # The Jina AI Reader tool
└── utils/                # Common utility functions (logger, error handler, etc.)

For a detailed file tree, run npm run tree or see [docs/tree.md](docs/tree.md).

Development & Testing

Development Scripts

# Build the project (compile TS to JS in dist/)
npm run build

# Clean build artifacts and then rebuild the project
npm run rebuild

# Format code with Prettier
npm run format

Testing

This project uses Vitest for unit and integration testing.

# Run all tests once
npm test

# Run tests in watch mode
npm run test:watch

# Run tests and generate a coverage report
npm run test:coverage

Running the Server

# Start the server using stdio (default)
npm run start:server

# Start the server using HTTP transport
npm run start:server:http

License

This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.


Built with the Model Context Protocol

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.