Ldoce
Creatededgardamasceno-dev
Scrapes data from the Longman Dictionary website and returns it in a standardized JSON format.
About
Ldoce is a server built with Node.js and TypeScript that scrapes the Longman Dictionary page for a given word and returns the extracted data in a standardized JSON format, suitable for use by AI agents. It retrieves information like the introduction, related topics, entries (verb and noun), corpus examples, and word origin, structuring it into a JSON object. The project adheres to the Model Context Protocol (MCP) standards and uses Axios and Cheerio for HTTP requests and HTML parsing.
Key Features
- Retrieves entries with pronunciation details, meanings, examples, and more.
- Extracts introductory information and related topics from the Longman Dictionary.
- Provides the origin of the word.
- Fetches corpus examples for a given word.
- Utilizes MCP SDK to expose a tool integrable with MCP clients.
Use Cases
- Creating a structured database of dictionary definitions and examples.
- Integrating Longman Dictionary data into AI agents.
- Providing programmatic access to Longman Dictionary content.