loading…
Search for a command to run...
loading…
Enables LLMs to search and retrieve Latin word definitions and lemmas from the Logeion dictionary database, with support for automatic lemmatization via spaCy.
Enables LLMs to search and retrieve Latin word definitions and lemmas from the Logeion dictionary database, with support for automatic lemmatization via spaCy.
License: MIT Python 3.8+ MCP Server spaCy
Logeion is a powerful dictionary for Ancient Latin and Greek, now available as an MCP (Model Context Protocol) server so that LLMs can interact with the dictionary functionality.
# Clone the repository
git clone https://github.com/yourusername/logeion-mcp-server.git
cd logeion-mcp-server
# Install dependencies
pip install -r requirements.txt
# Download spaCy model
python -m spacy download la_core_web_lg
# Run the server
python logeion.py
git clone https://github.com/yourusername/logeion-mcp-server.git
cd logeion-mcp-server
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python -m spacy download la_core_web_lg
dvlg-wheel-mini.sqlite should be placed in the project root directorypython logeion.py
The server runs on stdio transport by default, making it compatible with MCP clients.
get_word(word: str)Searches for a Latin word in the dictionary database.
Parameters:
word (str): The Latin word to search forReturns:
success (bool): Whether the search was successfulword (str): The original search termlemma (str, optional): The lemmatized form if foundresults (list, optional): Database results if foundmethod (str): How the search was performed ("exact_match", "lemmatized", "none", "error")error (str, optional): Error message if something went wrongExample Usage:
# Search for "amare" (to love)
result = get_word("amare")
# Search for "amo" (I love) - will find the lemma "amare"
result = get_word("amo")
The server connects to a SQLite database with the following structure:
Entrieshead - contains the Latin word formspython test_logeion.py
python demo.py
python explore_db.py
# Build and run
docker-compose up --build
# Or build manually
docker build -t logeion-mcp-server .
docker run -it --rm -v $(pwd)/dvlg-wheel-mini.sqlite:/app/dvlg-wheel-mini.sqlite:ro logeion-mcp-server
logeion-mcp-server/
├── logeion.py # Main MCP server implementation
├── requirements.txt # Python dependencies
├── README.md # This file
├── LICENSE # MIT License
├── mcp-config.json # MCP server configuration
├── demo.py # Demo script
├── test_logeion.py # Comprehensive test suite
├── explore_db.py # Database exploration utility
├── Dockerfile # Docker configuration
├── docker-compose.yml # Docker Compose setup
└── venv/ # Virtual environment
To add new MCP tools, use the @mcp.tool() decorator:
@mcp.tool()
def your_new_tool(param1: str, param2: int):
# Your tool implementation
return {"result": "success"}
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)# Install development dependencies
pip install -r requirements.txt
# Run linting
flake8 .
black --check .
isort --check-only .
# Run tests with coverage
pytest test_logeion.py --cov=logeion
This project is licensed under the MIT License - see the LICENSE file for details.
Note: This MCP server provides access to Latin dictionary functionality through the Model Context Protocol, enabling LLMs to perform Latin word lookups and analysis.
Made with ❤️ for the classical language community
Выполни в терминале:
claude mcp add logeion-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.