query-rewrite-mcp
v0.1.0
Published
Rewrite query for better search results.
Readme
query-rewrite-mcp MCP Server
Rewrite query for better search results.
Quick Start
{
"mcpServers": {
"query-rewrite-mcp": {
"command": "npx",
"args": ["-y", "query-rewrite-mcp"],
"env": {
"OPENROUTER_API_KEY": "your-api-key",
"REWRITE_MODEL": "anthropic/claude-3.7-sonnet"
}
}
}
}Development
Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchInstallation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"query-rewrite-mcp": {
"command": "/path/to/query-rewrite-mcp/build/index.js"
}
}
}Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
