Back to MCP directory
publicPublicdnsLocal runtime

ldoce-mcp-server

一个基于Node.js和TypeScript的MCP服务器,从Longman词典提取单词数据并返回JSON格式结果。

article

README

🚀 LDOCE MCP 服务器

这是一个采用 Node.js 和 TypeScript 开发的 MCP 服务器。它能够从朗文词典(Longman Dictionary)的网页抓取特定单词的信息,并以标准化的 JSON 格式返回,供 AI 代理使用,为自然语言处理和信息检索提供了便利。

🚀 快速开始

该服务器会连接到 https://www.ldoceonline.com/dictionary/<word> 这个 URL,从中提取相关信息,像介绍、相关主题、动词和名词的条目、语料库示例以及单词来源等,最后将这些信息以结构化的 JSON 格式返回。此项目遵循 Model Context Protocol (MCP) 标准,借助 Axios 和 Cheerio 库来进行 HTTP 请求和 HTML 解析。

✨ 主要特性

  • 从朗文词典提取信息
    • 介绍和相关主题。
    • 包含发音、含义、示例等详细信息的条目(动词和名词)。
    • 语料库示例。
    • 单词来源。
  • 利用 MCP SDK 提供工具:可与 MCP 客户端集成,例如 Claude Desktop。

📦 安装指南

先决条件

  • Node.js(版本 16 或更高)
  • npm
  • Git

使用 Smithery 安装

通过 Smithery 自动安装 LDOCE 服务器以供 Claude Desktop 使用:

npx -y @smithery/cli install @edgardamasceno-dev/ldoce-mcp-server --client claude

手动安装

  1. 克隆仓库:
git clone https://github.com/seuusuario/ldoce-mcp-server.git
cd ldoce-mcp-server
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client