edgardamasceno-dev_ldoce-mcp-server

edgardamasceno-dev_ldoce-mcp-server

3.3

Ldoce MCP Server is a Node.js and TypeScript-based server that extracts data from the Longman Dictionary and returns it in a standardized JSON format for AI agents.

The Ldoce MCP Server connects to the Longman Dictionary's online page for a specified word, extracts relevant information such as introduction, related topics, verb and noun entries, corpus examples, and word origin, and returns this data in a structured JSON format. The server adheres to the Model Context Protocol (MCP) standards and utilizes Axios for HTTP requests and Cheerio for HTML parsing. This setup allows for seamless integration with AI agents, providing them with detailed lexical data.

Features

  • Extracts detailed information from the Longman Dictionary, including introductions, related topics, and word entries.
  • Provides structured JSON output for easy consumption by AI agents.
  • Utilizes Axios and Cheerio for efficient HTTP requests and HTML parsing.
  • Integrates with MCP SDK to expose a tool for MCP clients like Claude Desktop.

Usage with Different Platforms

Node.js

javascript
const axios = require('axios');
const cheerio = require('cheerio');

async function fetchWordData(word) {
  const url = `https://www.ldoceonline.com/dictionary/${word}`;
  const response = await axios.get(url);
  const $ = cheerio.load(response.data);
  // Extract data logic here
}

fetchWordData('example');