0.0.1 • Published 10 months ago
@mseep/mcp-server-dictionary v0.0.1
Dictionary Server
A dictionary server supporting the Model Context Protocol (MCP).
Retrieves word meanings from the Cambridge Dictionary.
Adding MCP to Command Line
To integrate the MCP server into your command line, add the following configuration:
"mcp-server-cambridge-dict": {
"command": "npx",
"args": ["-y", "mcp-server-dictionary"],
"disabled": false
}Features
- Seamless integration with Claude and other AI assistants via the MCP protocol.
- Robust dictionary query tools.
- Retrieves word meanings from the Cambridge Dictionary.
Development
Install Dependencies
Install the required dependencies:
npm installBuild the Server
Build the server for production:
npm run buildDevelopment Mode
Enable auto-rebuild during development:
npm run watchRunning the Server
Start the MCP server with the following command:
npm run start:mcpTesting with MCP Inspector
To test the server, use the MCP Inspector:
npm run inspectorMCP Response Specification
This server adheres to the MCP response specification.
Tool Response
A successful word query returns the following format:
{
"content": [
{
"type": "text",
"text": "Word query result (in JSON format)"
}
]
}Error Response
In case of an error, the response format is:
{
"content": [
{
"type": "text",
"text": "Error message"
}
],
"isError": true
}API Documentation
lookup_word
Fetches the pronunciation, definition, and example sentences for a word.
Parameters
word(string): The word to query.
Returns
Detailed information about the word, including pronunciation, definition, and example sentences.
0.0.1
10 months ago