home / mcp / thesaurus by api ninjas mcp server
thesaurus_by_api_ninjas - 由 MCP工厂自动创建
Configuration
View docs{
"mcpServers": {
"bach-ai-tools-thesaurus_by_api_ninjas": {
"command": "uvx",
"args": [
"--from",
"bach-thesaurus_by_api_ninjas",
"bach_thesaurus_by_api_ninjas"
],
"env": {
"API_KEY": "YOUR_API_KEY"
}
}
}
}This MCP Server lets you access the Thesaurus API from Api Ninjas. It exposes an interface you can query to get synonyms and antonyms for a given word, making it easy to incorporate thesaurus lookups into your applications. You can run it locally or via an MCP platform to manage configuration and usage.
You run this MCP server with an MCP client (like the EMCP platform or a local MCP runner). The server expects an API key for authentication and supports running in different ways, including a fast runtime via a launcher, or directly with Python. To use it, start the server with one of the supported commands and supply your API key in the environment. Then, point your client at the MCP server name you configured to start making thesaurus lookups.
Typical usage patterns include starting the server via a launcher that manages runtime dependencies, or running the Python module directly for development. In all cases, you provide your API key so requests to Api Ninjas are authenticated.
Prerequisites: you need Python installed to run the server directly, and you may also use a modern Python package installer.
# Install from PyPI
pip install bach-thesaurus_by_api_ninjas
# Or install from source in editable mode (if you are developing)
pip install -e .Configure your API key and run the server with your chosen method. The API key must be available to the server process via environment variables.
{
"mcpServers": {
"bach_thesaurus": {
"command": "uvx",
"args": ["--from", "bach-thesaurus_by_api_ninjas", "bach_thesaurus_by_api_ninjas"],
"env": {
"API_KEY": "your_api_key_here"
}
}
}
}{
"mcpServers": {
"bach_thesaurus_latest": {
"command": "uvx",
"args": ["--from", "bach-thesaurus_by_api_ninjas@latest", "bach_thesaurus_by_api_ninjas"],
"env": {
"API_KEY": "your_api_key_here"
}
}
}
}{
"mcpServers": {
"bach_thesaurus": {
"command": "uvx",
"args": ["--from", "bach-thesaurus_by_api_ninjas", "bach_thesaurus_by_api_ninjas"],
"env": {
"API_KEY": "your_api_key_here"
}
}
}
}{
"mcpServers": {
"bach_thesaurus": {
"command": "uvx",
"args": ["--from", "bach-thesaurus_by_api_ninjas", "bach_thesaurus_by_api_ninjas"],
"env": {
"API_KEY": "your_api_key_here"
}
}
}
}This server provides an endpoint to fetch synonyms and antonyms for a given word.
Endpoint: GET /v1/thesaurus with parameter word (string, required) to look up a word.
Endpoint to retrieve synonyms and antonyms for a given word via GET /v1/thesaurus