home / mcp / sentiment ninjas mcp server
Provides sentiment analysis by querying the Api Ninjas Sentiment API through an MCP server.
Configuration
View docs{
"mcpServers": {
"bach-ai-tools-bachai-sentiment-by-api-ninjas": {
"command": "python",
"args": [
"server.py"
],
"env": {
"API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}You can access sentiment analysis by Api Ninjas through this MCP server. It provides a simple, authenticated way to analyze text sentiment from your applications using a lightweight stdio-based MCP connection.
You connect to the Sentiment By Api Ninjas MCP server using an MCP client that supports stdio connections. Run the server locally and point your client to the provided stdio entry. The server exposes a sentiment analysis tool that returns a sentiment score and overall sentiment for a given block of text.
Key usage pattern: you authenticate with an API key, start the MCP server, and then call the v1sentiment tool with the text you want analyzed. The server handles the request to Api Ninjas and returns the analysis results to your client.
Prerequisites: Python is required to install and run the package. You will also use uvx to run the MCP server quickly, or you can run in development mode with Python directly.
This MCP server requires an API key for authenticating with Api Ninjas. You should provide the key as an environment variable named API_KEY when running the server. You can set this variable in your shell or within your MCP client configuration.
Returns sentiment analysis score and overall sentiment for a given block of text via the GET /v1/sentiment endpoint.