mcp-summarizer
by: 0xshellming
MCP Server for AI Summarization
📌Overview
Purpose: To provide an intelligent content summarization service that extracts key information from various formats using advanced AI.
Overview: The MCP Content Summarizer Server leverages Google's Gemini 1.5 Pro model to generate concise and informative summaries from diverse content sources including text, web pages, PDFs, and EPUBs. This solution enhances reading efficiency and comprehension.
Key Features:
-
Universal Content Summarization: Utilizes Google's Gemini 1.5 Pro model for reliable and nuanced summarization across various content types.
-
Support for Multiple Content Types: Capable of summarizing plain text, web pages, PDF documents, EPUB books, and HTML content to cater to a wide range of users.
-
Customizable Summary Length: Allows users to define the desired summary length, accommodating different needs and preferences.
-
Multi-language Support: Provides summaries in various languages, making it accessible to a global audience.
-
Smart Context Preservation: Ensures that key information and context are retained in the summaries for better understanding.
-
Dynamic Greeting Resource: Includes a simple resource for testing server functionality.
MCP Content Summarizer Server
A Model Context Protocol (MCP) server that provides intelligent summarization capabilities for various types of content using Google's Gemini 1.5 Pro model. This server helps generate concise summaries while maintaining key information from different content formats.
Powered by 3MinTop
The summarization service is powered by 3MinTop, an AI-powered reading tool that helps you understand a chapter's content in just three minutes. It transforms complex content into clear summaries, making learning efficient.
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
- HTML content
- Customizable summary length
- Multi-language support
- Smart context preservation
- Dynamic greeting resource for testing
Getting Started
- Clone this repository
- Install dependencies:
pnpm install
- Build the project:
pnpm run build
- Start the server:
pnpm start
Development
- Use
pnpm run dev
to start the TypeScript compiler in watch mode. - Modify
src/index.ts
to customize server behavior or add new tools.
Usage with Desktop App
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
Summarizes content from various sources using the following parameters:
content
(string | object): The input content to summarize (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 the 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
A dynamic resource that demonstrates basic MCP resource functionality:
- URI format:
greeting://{name}
- Returns a greeting message with the provided name.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE
file for details.