home / mcp / similar words mcp server
An MCP server that exposes access to the Similar Words API for word similarity queries via stdio.
Configuration
View docs{
"mcpServers": {
"bach-ai-tools-bachai-similar-words": {
"command": "uvx",
"args": [
"--from",
"bach-similar_words",
"bach_similar_words"
],
"env": {
"API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}You can run this MCP Server to access the Similar Words API from your applications. It uses stdio for communication and lets you start the server locally via uvx or Python, making it easy to integrate word similarity lookups into your workflows while keeping credentials secure.
You will run the MCP Server as a local, stdio-based service. Use an MCP client to connect to it and perform similarity lookups against the Similar Words API. Ensure you set the required API key as an environment variable before starting the server.
Prerequisites you need before installation:
- Python installed on your system for local install options.
- Pip to manage Python packages.
# Install the package from PyPI
pip install bach-similar_words
# Run the server using uvx (recommended)
uvx --from bach-similar_words bach_similar_words
# Or run in development mode using Python directly
python server.pyThis server requires an API key. Set the API key in your environment before starting the server.
Environment variable to set before starting the server:
{
"mcpServers": {
"bach-similar_words": {
"command": "uvx",
"args": ["--from", "bach-similar_words", "bach_similar_words"],
"env": {
"API_KEY": "your_api_key_here"
}
}
}
}Protect your API key. Do not commit it to version control. Use environment variables in your deployment environment and limit access to the MCP client.
If you encounter connection issues, verify that the API key is set correctly and that the uvx command is available in your PATH. Check that the environment variable API_KEY is exported in the shell or defined in your MCP client configuration.
You can also run the server in development mode using Python with python server.py if you are actively developing or debugging the integration.
Launch the MCP server using uvx from the bach-similar_words package to expose the Similar Words API via stdio.