- Home
- MCP servers
- Thesaurus By Api Ninjas
Thesaurus By Api Ninjas
- python
0
GitHub Stars
python
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
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.
How to use
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.
How to install
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 .
Additional setup and configuration
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"
}
}
}
}
Cursor配置示例
{
"mcpServers": {
"bach_thesaurus": {
"command": "uvx",
"args": ["--from", "bach-thesaurus_by_api_ninjas", "bach_thesaurus_by_api_ninjas"],
"env": {
"API_KEY": "your_api_key_here"
}
}
}
}
Claude Desktop 配置示例
{
"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.
Available tools
v1thesaurus
Endpoint to retrieve synonyms and antonyms for a given word via GET /v1/thesaurus