Summarizes content from various sources including text, URLs, PDFs, and EPUB files
A dynamic resource that returns a greeting message with the provided name
The Content Summarizer MCP 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 including plain text, web pages, PDF documents, and EPUB books. Powered by 3MinTop, this summarization service transforms complex content into clear summaries, making learning efficient and helping build lasting reading habits. The MCP supports customizable summary length, multi-language output, and smart context preservation to ensure the most important information is retained.
To use the Content Summarizer MCP, add the following configuration to your application:
{
"mcpServers": {
"content-summarizer": {
"command": "node",
"args": [
"{ABSOLUTE_PATH_TO_REPO}/dist/index.js"
]
}
}
}
Replace {ABSOLUTE_PATH_TO_REPO}
with the absolute path to where you've cloned the repository.
Clone the repository:
git clone https://github.com/0xshellming/mcp-summarizer.git
Navigate to the project directory:
cd mcp-summarizer
Install dependencies:
pnpm install
Build the project:
pnpm run build
Start the server:
pnpm start
For development purposes, you can use pnpm run dev
to start the TypeScript compiler in watch mode.
The Content Summarizer MCP provides tools for summarizing various types of content. You can customize the summary length, target language, and style to suit your needs.
To summarize content, use the summarize
tool with the appropriate parameters:
// 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"
});
The MCP also includes a simple greeting resource for testing purposes:
// Access the greeting resource
const greeting = await server.resource("greeting://John");
console.log(greeting); // Returns a greeting message with the provided name
The Content Summarizer MCP can be configured by modifying the source code in src/index.ts
. You can customize the server behavior or add new tools as needed.