Discover Awesome MCP Servers

Extend your agent with 84,516 capabilities via MCP servers.

All84,516
optionslab

optionslab

Options analytics MCP server providing 40+ tools for options chain data, position valuation, Greeks, charts, and volatility analysis.

doc-tools-mcp

doc-tools-mcp

Việc đọc và ghi file Word (định dạng .docx) sử dụng giao thức MCP (nếu bạn đang đề cập đến một giao thức cụ thể có tên MCP) trong Node.js là một nhiệm vụ phức tạp và có thể không có thư viện Node.js nào hỗ trợ trực tiếp giao thức MCP cho Word. Tuy nhiên, tôi sẽ giải thích cách tiếp cận chung để đọc và ghi file Word trong Node.js, và sau đó thảo luận về khả năng tích hợp với một giao thức MCP giả định. **Đọc và Ghi File Word (.docx) trong Node.js** Để đọc và ghi file Word trong Node.js, bạn thường sử dụng các thư viện sau: * **docx:** Thư viện phổ biến để tạo và chỉnh sửa file .docx. * **mammoth:** Thư viện để chuyển đổi file .docx sang HTML. * **officegen:** Một thư viện khác để tạo file Office (bao gồm Word). **Ví dụ sử dụng `docx` để đọc và ghi:** **1. Cài đặt thư viện:** ```bash npm install docx ``` **2. Đọc file Word:** ```javascript const { Document, Packer, Paragraph, TextRun } = require("docx"); const fs = require("fs"); // Giả sử bạn có một file Word đã tồn tại const filePath = "path/to/your/document.docx"; // **Lưu ý quan trọng:** Thư viện `docx` chủ yếu dùng để *tạo* file Word. Để *đọc* nội dung từ file .docx hiện có, bạn cần một thư viện khác như `mammoth` (xem bên dưới) hoặc một thư viện giải nén XML. `docx` không trực tiếp đọc file .docx. // Ví dụ sử dụng `mammoth` để đọc: const mammoth = require("mammoth"); mammoth.extractRawText({ path: filePath }) .then(function(result){ const text = result.value; // The raw text const messages = result.messages; console.log(text); console.log(messages); // Thông báo lỗi hoặc cảnh báo nếu có }) .done(); // **Ví dụ (không hoạt động) sử dụng `docx` để cố gắng đọc (chỉ để minh họa):** // **KHÔNG SỬ DỤNG CÁCH NÀY ĐỂ ĐỌC FILE WORD.** // try { // const buffer = fs.readFileSync(filePath); // const document = new Document({ // sections: [{ // children: [ // new Paragraph({ // children: [ // new TextRun("This is a test paragraph."), // ], // }), // ], // }], // }); // // **Lỗi:** `docx` không có phương thức để đọc trực tiếp từ buffer hoặc file. // // document.load(buffer); // Phương thức này không tồn tại. // console.log("Đọc file thành công (giả định)."); // } catch (error) { // console.error("Lỗi khi đọc file:", error); // } ``` **3. Ghi file Word:** ```javascript const { Document, Packer, Paragraph, TextRun } = require("docx"); const fs = require("fs"); // Tạo một tài liệu Word mới const doc = new Document({ sections: [{ children: [ new Paragraph({ children: [ new TextRun("Hello World!"), ], }), ], }], }); // Tạo file .docx Packer.toBuffer(doc).then((buffer) => { fs.writeFileSync("hello_world.docx", buffer); console.log("File Word đã được tạo thành công!"); }); ``` **Giải thích:** * **`docx`:** Thư viện này cho phép bạn tạo các đối tượng đại diện cho các thành phần của tài liệu Word (Document, Paragraph, TextRun, v.v.). * **`Packer.toBuffer(doc)`:** Chuyển đổi đối tượng `Document` thành một buffer chứa dữ liệu file .docx. * **`fs.writeFileSync()`:** Ghi buffer vào một file. **Quan trọng:** Thư viện `docx` chủ yếu được thiết kế để *tạo* và *chỉnh sửa* file Word từ code. Để *đọc* nội dung từ file Word hiện có, bạn cần sử dụng một thư viện khác như `mammoth` hoặc một thư viện giải nén XML và phân tích cú pháp XML. **Tích hợp với giao thức MCP (giả định):** Nếu bạn có một giao thức MCP cụ thể mà bạn muốn sử dụng để truyền dữ liệu Word, bạn cần thực hiện các bước sau: 1. **Định nghĩa giao thức MCP:** Hiểu rõ cách giao thức MCP hoạt động, định dạng dữ liệu mà nó sử dụng, và các lệnh mà nó hỗ trợ. 2. **Triển khai MCP client/server:** Viết code Node.js để giao tiếp với MCP server (hoặc triển khai MCP server nếu cần). Điều này có thể bao gồm việc sử dụng các thư viện mạng như `net` hoặc `socket.io`. 3. **Chuyển đổi dữ liệu Word:** * **Để gửi file Word qua MCP:** Đọc file Word vào một buffer (sử dụng `fs.readFileSync()`), và sau đó gửi buffer này qua giao thức MCP. Ở phía nhận, bạn sẽ nhận được buffer và ghi nó vào một file. * **Để gửi nội dung Word (ví dụ: văn bản) qua MCP:** Sử dụng `mammoth` để trích xuất văn bản từ file Word. Sau đó, gửi văn bản này qua giao thức MCP. Ở phía nhận, bạn có thể tạo một file Word mới bằng cách sử dụng thư viện `docx` và chèn văn bản đã nhận vào đó. 4. **Xử lý lỗi:** Xử lý các lỗi có thể xảy ra trong quá trình giao tiếp MCP và xử lý file Word. **Ví dụ (giả định) về việc gửi file Word qua MCP:** ```javascript const fs = require("fs"); const net = require("net"); // Thông tin MCP server const MCP_HOST = "localhost"; const MCP_PORT = 12345; // Đường dẫn đến file Word const filePath = "path/to/your/document.docx"; // Tạo một MCP client const client = new net.Socket(); client.connect(MCP_PORT, MCP_HOST, () => { console.log("Đã kết nối đến MCP server."); // Đọc file Word vào một buffer const fileBuffer = fs.readFileSync(filePath); // Gửi buffer qua MCP client.write(fileBuffer); console.log("Đã gửi file Word qua MCP."); client.destroy(); // Đóng kết nối }); client.on("close", () => { console.log("Kết nối đã đóng."); }); client.on("error", (err) => { console.error("Lỗi kết nối:", err); }); ``` **Lưu ý quan trọng:** * Ví dụ trên chỉ là một ví dụ đơn giản và giả định rằng giao thức MCP cho phép gửi dữ liệu nhị phân trực tiếp. Bạn có thể cần điều chỉnh code để phù hợp với yêu cầu cụ thể của giao thức MCP của bạn. * Bạn cần triển khai MCP server để nhận dữ liệu. * Việc xử lý lỗi và bảo mật là rất quan trọng trong một ứng dụng thực tế. **Tóm tắt:** Việc đọc và ghi file Word trong Node.js có thể được thực hiện bằng cách sử dụng các thư viện như `docx` (để tạo và chỉnh sửa) và `mammoth` (để đọc). Để tích hợp với một giao thức MCP, bạn cần triển khai MCP client/server và chuyển đổi dữ liệu Word sang định dạng phù hợp với giao thức MCP. Hãy nhớ xử lý lỗi và bảo mật một cách cẩn thận. Nếu bạn có thêm thông tin về giao thức MCP mà bạn đang sử dụng, tôi có thể cung cấp hướng dẫn cụ thể hơn.

African Market OS - MVR API

African Market OS - MVR API

Read-only relational-readiness preflight for AI agents evaluating market trust, permission, evidence gaps, pilot readiness, and scale readiness in African and other high-context markets.

kat-tribute-mcp

kat-tribute-mcp

MCP server for foldkit that provides tools and resources for the 7-prime spine, 7 κ-bands, and 6 fold operations, enabling folding, classification, and state manipulation in any MCP client.

Search Intent MCP

Search Intent MCP

Một dịch vụ dựa trên MCP (Multi-Channel Platform - Nền tảng Đa kênh) phân tích các từ khóa tìm kiếm của người dùng để xác định ý định của họ, cung cấp phân loại, lý giải, tham khảo và đề xuất tìm kiếm để hỗ trợ phân tích SEO.

MCP Trading Server

MCP Trading Server

Exposes Alpaca paper trading tools (get positions and account) via SSE transport, designed for Claude Desktop and n8n.

zopaf-mcp

zopaf-mcp

Negotiation math engine for AI agents. Computes Pareto frontiers, generates iso-utility counteroffers, and infers counterpart priorities. 9 tools for any multi-issue negotiation. Zero LLM tokens — pure MILP optimization.

Terra Config MCP Server

Terra Config MCP Server

Enables LLMs to configure the TerraAPI dashboard by managing health and fitness integrations, destinations, and provider credentials. It allows users to programmatically interact with the Terra ecosystem to handle developer settings and data source configurations.

fastmcp-opengauss

fastmcp-opengauss

Enables interaction with openGauss databases through multiple transport methods (Stdio, SSE, Streamable-Http). Supports database operations and queries with configurable connection parameters.

HA Admin MCP

HA Admin MCP

An MCP server for safely previewing, creating, validating, editing and rolling back AI-managed Home Assistant automations.

Pedalpalooza MCP Server

Pedalpalooza MCP Server

Fetches bike ride events from the Pedalpalooza calendar and allows LLMs to query rides by date, pace, difficulty, and family-friendliness.

Nearest Tailwind Colors

Nearest Tailwind Colors

Finds the closest Tailwind CSS palette colors to any given CSS color value. Supports multiple color spaces and customizable result filtering to help match designs to Tailwind's color system.

CozoDB Memory MCP Server

CozoDB Memory MCP Server

Local-first memory for Claude & AI agents with hybrid search, Graph-RAG, and time-travel, runs entirely on your machine.

FastMCP Document Analyzer

FastMCP Document Analyzer

A comprehensive document analysis server that performs sentiment analysis, keyword extraction, readability scoring, and text statistics while providing document management capabilities including storage, search, and organization.

GitHub MCP Server

GitHub MCP Server

Connects Claude directly to GitHub repositories for reading code, making changes, committing, and managing branches and pull requests.

legalize-mcp

legalize-mcp

A read-only MCP server providing access to national legislation from 37 jurisdictions via the legalize-dev corpus, with tools for searching, retrieving laws, and browsing reform history.

openfinance-br-mcp

openfinance-br-mcp

Enables Claude to interact with the Open Finance Brasil APIs, allowing users to query accounts, balances, transactions, credit cards, PIX keys, initiate PIX payments, and view investments across supported Brazilian banks using natural language.

DB Query MCP

DB Query MCP

Query SQLite databases via AI — safe read-only mode

advanced-seo-mcp

advanced-seo-mcp

Provides AI agents with professional-grade SEO capabilities including on-page analysis, technical audits, PageSpeed insights, and Ahrefs data integration.

Useful-mcps

Useful-mcps

Dưới đây là danh sách các máy chủ MCP nhỏ hữu ích, bao gồm: * docx\_replace: thay thế thẻ trong tài liệu Word * yt-dlp: trích xuất chương và phụ đề dựa trên chương * mermaid: tạo và hiển thị hình ảnh bằng API của mermaidchart.com

Keboola Explorer MCP Server

Keboola Explorer MCP Server

This server facilitates interaction with Keboola's Storage API, enabling users to browse and manage project buckets, tables, and components efficiently through Claude Desktop.

OutlookMaster-MCP

OutlookMaster-MCP

A comprehensive MCP server for Microsoft Outlook email management, enabling mail operations, smart search, statistical analysis, and more via natural language.

PABS MCP Server

PABS MCP Server

Provides AI coding tools with live access to product strategy including briefs, hypotheses, competitor analysis, PRD, and strategic pulse for context-aware development.

RollDate MCP

RollDate MCP

Helps AI agents install and integrate the RollDate vanilla JS scrolling date picker into projects.

MCP Jieba Server

MCP Jieba Server

Provides high-performance Chinese text segmentation, POS tagging, and keyword extraction using Rust-based Jieba implementation. Supports both local STDIO and remote HTTP deployment modes.

computer-control-mcp

computer-control-mcp

Enables computer control via mouse, keyboard, OCR, and screen/window management, similar to Anthropic's computer-use.

z/OS FTP MCP Server

z/OS FTP MCP Server

Enables interaction with z/OS mainframe systems via FTP, including dataset listing/download/upload, JCL job submission and monitoring, with advanced text processing and pagination support.

requirements-risk-analyser

requirements-risk-analyser

AI-powered pipeline that analyzes user stories and PRDs for gaps, ambiguities, and missing acceptance criteria before coding, with MCP tools for requirement analysis and risk reporting.

TensorFeed

TensorFeed

Real-time AI industry intelligence MCP server. 6 free tools (news, status, pricing, today summary, agent activity, MCP registry snapshot) plus 13 paid tools (routing, news search, history series, cost projection, deep-dive, comparison, webhook watches). Pay-per-call in USDC on Base, no accounts.

OpenFDA MCP Server

OpenFDA MCP Server

A comprehensive MCP server that provides access to U.S. FDA public datasets via the openFDA API, enabling querying of drug adverse events, labeling, recalls, approvals, shortages, NDC directory, and medical device regulatory data.