0M

0xshellming/mcp-summarizer

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

167 stars 25 forks 质量 48 趋势 17

0xshellming/mcp-summarizer 是从 https://github.com/0xshellming/mcp-summarizer. 导入的 MCP 服务器候选

概览

0xshellming/mcp-summarizer 是从 https://github.com/0xshellming/mcp-summarizer. 导入的 MCP 服务器候选

概述(AI 翻译)

一款模型上下文协议(MCP)服务器,采用谷歌Gemini 1.5 Pro模型,为各种类型的内容提供智能摘要功能。该服务器可以帮助您生成简明的摘要,同时保留来自不同内容格式的关键信息。

由3MinTop提供技术支持

该摘要服务由3MinTop驱动,这是一款AI驱动的阅读工具,帮助你在短短三分钟内理解章节内容。3MinTop将复杂内容转化为清晰的摘要,使学习高效,帮助养成持久的阅读习惯。

特色

  • 使用谷歌Gemini 1.5 Pro模型实现通用内容摘要
  • 支持多种内容类型:
  • 纯文本
  • 网页
  • PDF 文档
  • EPUB图书
  • HTML 内容
  • 可自定义摘要长度
  • 多语言支持
  • 智能上下文保持
  • 用于测试的动态问候资源

开始

  1. 克隆此仓库

  2. 安装依赖:

  3. 建设项目:

  4. 启动服务器:

发展

  • 使用 pnpm run dev 以观察模式启动 TypeScript 编译器
  • 修改src/index.ts以定制服务器行为或添加新工具

桌面应用的使用

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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 can help you 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. 3MinTop transforms complex content into clear summaries, making learning efficient and helping build lasting reading habits.

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

  1. Clone this repository

  2. Install dependencies:

    pnpm install
    
  3. Build the project:

    pnpm run build
    
  4. 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. 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 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

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

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