Search and analyze classical Japanese literature using the Genji API, with advanced normalization features.
A Model Context Protocol (MCP) server that provides access to the Genji API for classical Japanese literature analysis and search. This server enables AI assistants like Claude to search and analyze texts from classical Japanese literature with advanced normalization features.
npm install -g @nakamura196/genji-mcp-server
Add the server to your Claude Desktop configuration file:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"genji": {
"command": "npx",
"args": ["@nakamura196/genji-mcp-server"]
}
}
}
Edit %APPDATA%/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"genji": {
"command": "npx",
"args": ["@nakamura196/genji-mcp-server"]
}
}
}
Alternatively, if you installed globally:
{
"mcpServers": {
"genji": {
"command": "genji-mcp-server"
}
}
}
After configuration, restart Claude Desktop. The Genji tools will be automatically available. You can ask Claude for classical Japanese literature analysis like:
genji_health_check
Checks the health and availability of the Genji API.
Parameters: None
genji_search
Searches classical Japanese texts with advanced normalization options.
Parameters:
query
(string, optional): Search query textlimit
(number, optional): Maximum results to return (1-100, default: 20)offset
(number, optional): Number of results to skip (default: 0)sort
(string, optional): Sort order for resultsexpand_repeat_marks
(boolean, optional): Expand repeat marks (default: true)unify_kanji_kana
(boolean, optional): Unify kanji/kana variations (default: true)unify_historical_kana
(boolean, optional): Unify historical kana (default: true)unify_phonetic_changes
(boolean, optional): Unify phonetic variations (default: true)unify_dakuon
(boolean, optional): Unify voiced sound variations (default: true)vol_str
(array, optional): Volume/chapter filtergenji_get_normalization_rules
Retrieves the list of available text normalization rules.
Parameters: None
genji_preview_normalization
Previews how text would be normalized with current rules.
Parameters:
text
(string, required): Text to preview normalization forThe server supports various normalization options for classical Japanese text:
# Clone the repository
git clone https://github.com/nakamura196/genji-mcp-server.git
cd genji-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Start in development mode
npm run dev
This server interfaces with the Genji API, which provides:
The server includes comprehensive error handling for:
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see the LICENSE file for details.
If you encounter any issues, please file them on the GitHub Issues page.
Kagi search API integration
Provides weather data using the US National Weather Service (NWS) API. Built with pure JavaScript ES Modules.
Perform web searches using the DuckDuckGo Search API.
An MCP server for expert discovery, registration, and context injection, utilizing vector and graph databases.
A web search server that integrates with the Exa API to perform basic and advanced searches.
Google News search capabilities with automatic topic categorization and multi-language support via SerpAPI integration.
Search for npm packages
Query records of Korean independence activists from the Ministry of Patriots and Veterans Affairs.
Search for academic articles from scholarly vendors.
Provides AI assistants with direct access to Mastra.ai's complete knowledge base.