Summarizer MCP server

Provides intelligent summarization capabilities for various types of content.
Back to servers
Setup instructions
Provider
0xshellming
Release date
Feb 28, 2025
Language
TypeScript
Stats
98 stars

The MCP Content Summarizer Server provides intelligent summarization capabilities for various types of content using Google's Gemini 1.5 Pro model. It can generate concise summaries while maintaining key information from different content formats and is powered by 3MinTop, an AI-powered reading tool.

Features

  • Universal content summarization using Google's Gemini 1.5 Pro model
  • Support for multiple content types: plain text, web pages, PDF documents, EPUB books, and HTML content
  • Customizable summary length
  • Multi-language support
  • Smart context preservation
  • Dynamic greeting resource for testing

Installation

To set up the MCP Content Summarizer Server:

  1. Clone the repository
  2. Install dependencies:
    pnpm install
    
  3. Build the project:
    pnpm run build
    
  4. Start the server:
    pnpm start
    

Usage

Desktop Application Integration

To integrate this server with a desktop app, add the following to your app's server configuration:

{
  "mcpServers": {
    "content-summarizer": {
      "command": "node",
      "args": [
        "{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
      ]
    }
  }
}

Available Tools

Summarize Tool

The summarize tool processes content from various sources using these parameters:

  • content (string | object): The input content to summarize. Can be:
    • Text string
    • URL for web pages
    • Base64 encoded PDF
    • EPUB file content
  • type (string): Content type ("text", "url", "pdf", "epub")
  • maxLength (number, optional): Maximum length of summary in characters (default: 200)
  • language (string, optional): Target language for the summary (default: "en")
  • focus (string, optional): Specific aspect to focus on in the summary
  • style (string, optional): Summary style ("concise", "detailed", "bullet-points")

Example usage:

// Summarize a webpage
const result = await server.invoke("summarize", {
  content: "https://example.com/article",
  type: "url",
  maxLength: 300,
  style: "bullet-points"
});

// Summarize a PDF document
const result = await server.invoke("summarize", {
  content: pdfBase64Content,
  type: "pdf",
  language: "zh",
  style: "detailed"
});

Greeting Resource

The server provides a dynamic greeting resource that demonstrates basic MCP resource functionality:

  • URI format: greeting://{name}
  • Returns a greeting message with the provided name

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "content-summarizer" '{"command":"node","args":["{ABSOLUTE PATH TO FILE HERE}/dist/index.js"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "content-summarizer": {
            "command": "node",
            "args": [
                "{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "content-summarizer": {
            "command": "node",
            "args": [
                "{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later