Eudic MCP Server
A Model Context Protocol (MCP) server that provides tools for managing words in Eudic study lists.
Features
- save_word: Save words to your Eudic study list with context and categorization
- get_words_list: Retrieve a list of words from your Eudic study list
Installation
Using npx (recommended)
No installation required! Just use:
bashnpx eudic-mcp
Global installation
bashnpm install -g eudic-mcp
From source
- Clone this repository:
bashgit clone <repository-url> cd eudic-mcp
- Install dependencies and build:
bashnpm install npm run build
- Link globally (optional):
bashnpm link
Configuration
The server requires your Eudic API authorization token to be set as an environment variable:
bashexport EUDIC_AUTH_TOKEN="NIS your_token_here"
Optional Configuration
You can also set these optional environment variables:
EUDIC_API_BASE_URL: Base URL for Eudic API (default:https://api.frdic.com)EUDIC_USER_AGENT: User-Agent header for API requests (default:Mozilla/5.0)
Example .env file
bash# Copy .env.example to .env and fill in your values cp .env.example .env
Usage
Running the Server
Using npx:
bashEUDIC_AUTH_TOKEN="NIS your_token_here" npx eudic-mcp
Or if globally installed:
basheudic-mcp
Or if installed from source:
bashnpm run dev
MCP Client Configuration
Add this to your MCP client configuration (e.g., Claude Desktop):
Using npx:
json{ "mcpServers": { "eudic": { "command": "npx", "args": ["-y", "eudic-mcp"], "env": { "EUDIC_AUTH_TOKEN": "NIS your_token_here" } } } }
Using global installation:
json{ "mcpServers": { "eudic": { "command": "eudic-mcp", "env": { "EUDIC_AUTH_TOKEN": "NIS your_token_here" } } } }
Available Tools
save_word
Save a word to your Eudic study list.
Parameters:
word(required): The word to savelanguage(optional): Language of the word (default: "en")star(optional): Star rating for the word 1-5 (default: 2)context_line(optional): Context sentence containing the wordcategory_ids(optional): List of category IDs for organizing the word (default: [0])
Example:
json{ "word": "hello", "language": "en", "star": 3, "context_line": "Hello, how are you today?", "category_ids": [0, 1] }
get_words_list
Retrieve a list of words from your Eudic study list.
Parameters:
language(optional): Language of the words to retrieve (default: "en")category_id(optional): Category ID to filter words (default: 0)page(optional): Page number for pagination (default: 1)page_size(optional): Number of words per page, max 100 (default: 20)
Example:
json{ "language": "en", "category_id": 0, "page": 1, "page_size": 20 }
Returns: An array of word strings from your study list.
Getting Your Authorization Token
- Log in to your Eudic account
- Navigate to API settings or developer section
- Generate an API token
- The token format should be:
NIS your_actual_token
Development
bash# Install dependencies npm install # Run in development mode npm run dev # Build for production npm run build
License
MIT License - see LICENSE file for details.




