1. Conduid
  2. Developer Tools
  3. Rhubarb
MCP server · Developer Tools

Rhubarb

A Python framework for multi-modal document understanding with Amazon Bedrock

74Good

Scored 7 hours ago · breakdown

About Rhubarb

Rhubarb is an MCP server published by awslabs in the Developer Tools category: a Python framework for multi-modal document understanding with Amazon Bedrock.

The repository has 101 stars and 14 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/awslabs/rhubarb

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Rhubarb

Powered by Claude · Grounded in docs

I know everything about Rhubarb. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 7 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.0.8Model Refresh, Native PDF Support, Global Cross-Region Inference · 24 Mar 2026Model Refresh, Native PDF Support, Global Cross-Region Inference Breaking Changes Model enum names have changed. All deprecated Claude 3.x model enums have been removed and replaced with Claude 4.x equivalents. Update your code if you…
mcp-v0.1.3More MCP bug Fixes · 3 Nov 2025
mcp-v0.1.2MCP Bug Fixes · 3 Nov 2025
mcp-v0.1.1MCP Server for Document Processing · 3 Nov 2025
v0.0.7Sonnet 3.7 Model and Video Analysis · 14 Jun 2025✅ Claude Sonnet 3.7 Model: Nova Models: Added support for Claude Sonnet 3.7 Model ✅ Added Video Analysis support using Nova Models.

README

Amazon Bedrock License made-with-python Python 3.11 Ruff

Rhubarb

Rhubarb is a light-weight Python framework that makes it easy to build document and video understanding applications using Multi-modal Large Language Models (LLMs) and Embedding models. Rhubarb is created from the ground up to work with Amazon Bedrock and supports multiple foundation models including Anthropic Claude Multi-modal Language Models and Amazon Nova models for document and video processing, along with Amazon Titan Multi-modal Embedding model for embeddings.

What can I do with Rhubarb?

Visit Rhubarb documentation.

Rhubarb can do multiple document processing tasks such as

  • ✅ Document Q&A
  • ✅ Streaming chat with documents (Q&A)
  • ✅ Document Summarization
    • 🚀 Page level summaries
    • 🚀 Full summaries
    • 🚀 Summaries of specific pages
    • 🚀 Streaming Summaries
  • ✅ Structured data extraction
  • ✅ Extraction Schema creation assistance
  • ✅ Named entity recognition (NER)
    • 🚀 With 50 built-in common entities
  • ✅ PII recognition with built-in entities
  • ✅ Figure and image understanding from documents
    • 🚀 Explain charts, graphs, and figures
    • 🚀 Perform table reasoning (as figures)
  • ✅ Large document processing with sliding window approach
  • ✅ Document Classification with vector sampling using multi-modal embedding models
  • ✅ Logs token usage to help keep track of costs

Video Analysis (New!)

  • ✅ Video summarization
  • ✅ Entity extraction from videos
  • ✅ Action and movement analysis
  • ✅ Text extraction from video frames
  • ✅ Streaming video analysis responses

Rhubarb comes with built-in system prompts that makes it easy to use it for a number of different document understanding use-cases. You can customize Rhubarb by passing in your own system prompts. It supports exact JSON schema based output generation which makes it easy to integrate into downstream applications.

  • Supports PDF, TIFF, PNG, JPG, DOCX files (support for Excel, PowerPoint, CSV, Webp, eml files coming soon)
  • Supports MP4, AVI, MOV, and other common video formats for video analysis (S3 storage required)
  • Performs document to image conversion internally to work with the multi-modal models
  • Works on local files or files stored in S3
  • Supports specifying page numbers for multi-page documents
  • Supports chat-history based chat for documents
  • Supports streaming and non-streaming mode
  • Supports Converse API
  • Supports Cross-Region Inference

MCP Server Integration

Rhubarb now includes a built-in FastMCP server that exposes all document and video understanding capabilities through the Model Context Protocol (MCP). This allows seamless integration with MCP-compatible AI assistants like Cline, Claude Desktop, and other MCP clients.

MCP Features

  • 8 Tools: Complete access to all Rhubarb capabilities including document analysis, video processing, entity extraction, and document classification
  • 4 Resources: Built-in discovery for entities, models, schemas, and classification samples
  • Native Python: Direct integration without external dependencies
  • Conversation Memory: Maintains chat history across interactions
  • Flexible Authentication: Support for AWS profiles, access keys, and environment variables

Quick Start with MCP

  1. No installation required - The MCP server auto-installs when first used

  2. Configure in your MCP client (example for Cline):

    {
      "rhubarb": {
        "command": "uvx",
        "args": [
          "pyrhubarb-mcp@latest",
          "--aws-profile", "my-profile",
          "--default-model", "claude-sonnet"
        ]
      }
    }
    
  3. Alternative configurations:

    {
      "rhubarb": {
        "command": "uvx", 
        "args": [
          "pyrhubarb-mcp@latest",
          "--aws-access-key-id", "AKIA...",
          "--aws-secret-access-key", "your-secret",
          "--aws-region", "us-west-2"
        ]
      }
    }
    

For detailed MCP server documentation, see README_MCP.md.

Installation

Start by installing Rhubarb using pip.

pip install pyrhubarb

Usage

Create a boto3 session.

import boto3
session = boto3.Session()

Call Rhubarb

Local file

from rhubarb import DocAnalysis

da = DocAnalysis(file_path="./path/to/doc/doc.pdf", 
                 boto3_session=session)
resp = da.run(message="What is the employee's name?")
resp

With file in Amazon S3

from rhubarb import DocAnalysis

da = DocAnalysis(file_path="s3://path/to/doc/doc.pdf", 
                 boto3_session=session)
resp = da.run(message="What is the employee's name?")
resp

Video Analysis

from rhubarb import VideoAnalysis
import boto3

session = boto3.Session()

# Initialize video analysis with a video in S3
va = VideoAnalysis(
    file_path="s3://my-bucket/my-video.mp4",
    boto3_session=session
)

# Ask questions about the video
response = va.run(message="What is happening in this video?")
print(response)

Large Document Processing

Rhubarb supports processing documents with more than 20 pages using a sliding window approach. This feature is particularly useful when working with Claude models, which have a limitation of processing only 20 pages at a time.

To enable this feature, set sliding_window_overlap to a value between 1 and 10 when creating a DocAnalysis object:

doc_analysis = DocAnalysis(
    file_path="path/to/large-document.pdf",
    boto3_session=session,
    sliding_window_overlap=2     # Number of pages to overlap between windows (1-10)
)

When the sliding window approach is enabled, Rhubarb will:

  1. Break the document into chunks of 20 pages
  2. Process each chunk separately
  3. Combine the results from all chunks

Note: The sliding window technique is not yet supported for document classification. When using classification with large documents, only the first 20 pages will be considered.

For more details, see the Large Document Processing Cookbook.

For more usage examples see cookbooks.

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

README fetched from the repository 7 hours ago. The original is authoritative.

Questions

About Rhubarb

How do I install Rhubarb?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Rhubarb safe to use with an AI agent?

Its trust score is 74 out of 100 (good). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Rhubarb still maintained?

The last commit was 6 months ago and 25 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.