MCP Server Documentation
Complete guide to the Sentiqra MCP (Model Context Protocol) server - setup, configuration, tool schemas, and real working examples.
Overview
The Sentiqra MCP server exposes 6 tools that any MCP-compatible AI client can call:
detect_trust_safety- harmful language detection (16 languages)detect_crisis_intelligence- crisis signal detection (21 languages)detect_finance- market event detection (8 languages)detect_disinformation- manipulation technique detection (16 languages)detect_discrimination- discriminatory-language detection (17 languages)detect_customer_service- support-intent detection (18 languages)
MCP tools expose the same response contract as POST /v1/analyze - no mode returns the complete taxonomy. Grouped tools return up to 3 categories and up to 3 labels per category.
Signal-match scores range from 0.0 to 1.0.
Signal rows in the structured payload use the identical field shape as REST - analyzer, code, label, score, level (category/label), and parent on label-level rows - so one parser covers both surfaces.
Results below the configured minimum signal score are filtered out automatically.
Execution & Cost Contract
The billing unit is the analyzer run - the same unit
POST /v1/analyze and GET /v1/account/usage
meter. One tool invocation is not one billable run: every tool declares the analyzers it may
execute and its maximum billable runs, published in tools/list
under _meta (contract sentiqra/mcp-tool/v1).
Tool discovery is authoritative - this table is the deployed inventory it reports:
| Tool | Analyzer set | Max billable runs / call |
|---|---|---|
| detect_trust_safety | trust-safety | 1 |
| detect_crisis_intelligence | crisis-intelligence | 1 |
| detect_finance | finance | 1 |
| detect_disinformation | disinformation | 1 |
| detect_discrimination | discrimination | 1 |
| detect_customer_service | customer-service | 1 |
Some analyzers are REST-only
The four REST-only analyzers - insurance, dating-safety, fraud-scam, wellness - are not exposed over MCP; call them via POST /v1/analyze, which takes one or two explicit slugs per request. The relationship between the surfaces is intentional: MCP tools are the agent interface, REST is the request/response interface, and both draw on the same account usage ledger. The full capability comparison is on the interface matrix.
Preauthorized budget
Before a tools/call executes, its declared maximum is reserved from your account quota. if your remaining quota cannot cover a tool's declared maximum, the whole call is denied with monthly_quota_exceeded before anything executes - there is no partial start. Quota is account-level: multiple API keys on one account share the same allowance on MCP exactly as on REST.
A broader tool never widens access
Plan analyzer entitlements, per-key analyzer scopes, and language entitlements apply to every analyzer in a tool's set - identical semantics to the REST middleware. If any analyzer in the set is outside your plan or key scope, the call fails with analyzer_not_entitled before execution; a language outside your plan fails with language_not_in_plan.
Language requirements
The declared language applies to every analyzer in the set and must be supported by all of them - a language any analyzer lacks fails the call with unsupported_language before execution, so pick single-analyzer tools when mixing language coverage. Runtime fallback follows the same semantics as REST: analyzable-but-undedicated languages run under English coverage (language_fallback), and text with no analyzable content is not_applicable and unbilled.
Configuration selection
MCP tool inputs are text and language only - there is no detection_config parameter. Every call runs the analyzer's current deployed configuration; the result reports the configuration and classification fingerprint it executed under. Configuration pinning is a POST /v1/analyze feature.
Partial failures & settlement
Every result carries a per-analyzer report in structuredContent: analyzers[] entries with analyzer, status (completed, failed, timeout, overloaded, denied), and billed; plus analyzer_runs, billed_runs, and max_billable_runs. Settlement commits only runs the engine marked billed - a failed, overloaded, or denied analyzer is reported explicitly, never billed, and never masquerades as an empty result. A whole-call error (JSON-RPC error or an error-flagged result) releases the reservation entirely: nothing is billed.
Authentication
Authorization is your Sentiqra Bearer API key - validated at the portal boundary and independently re-validated by the engine. The endpoint does not accept OAuth access tokens or tokens issued for other services, and it never treats an upstream token as authorization: keep sq_live_ keys on this endpoint and other providers' tokens away from it. Management methods (initialize, tools/list, ping, notifications) are authenticated but never billed - same rule as REST management endpoints.
Transports
The MCP endpoint is reached over HTTPS - as a named server in AI clients, or directly from any HTTP client:
Hosted endpoint
For local AI clients (Claude Desktop, Cursor). The client connects to the hosted Sentiqra MCP endpoint over HTTPS - no local engine, no data directory, nothing to install beyond your client configuration.
https://sentiqra.tech/v1/mcp
HTTP
For remote and web integrations. The MCP endpoint is available at POST /v1/mcp on the running API server.
curl -X POST https://sentiqra.tech/v1/mcp \\\n -H "Authorization: Bearer $SENTIQRA_API_KEY" \\\n -H "Content-Type: application/json" \\\n -d '{...}'
Claude Desktop Setup
Add Sentiqra to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"sentiqra": {
"url": "https://sentiqra.tech/v1/mcp",
"headers": {
"Authorization": "Bearer ${SENTIQRA_API_KEY}"
}
}
}
}
Point the client at the hosted endpoint with your Bearer key - no local engine or data directory is required. After saving, restart Claude Desktop - you'll see the Sentiqra tools available in the tool palette. Sentiqra is offered as a hosted service only - there is no self-hosted or private deployment. Questions about your setup? Contact Solutions Engineering.
Cursor Setup
Add Sentiqra to Cursor's MCP configuration:
~/.cursor/mcp.json
{
"mcpServers": {
"sentiqra": {
"url": "https://sentiqra.tech/v1/mcp",
"headers": {
"Authorization": "Bearer ${SENTIQRA_API_KEY}"
}
}
}
}
Point the client at the hosted endpoint with your Bearer key - no local engine or data directory is required. Sentiqra is offered as a hosted service only - there is no self-hosted or private deployment. Questions about your setup? Contact Solutions Engineering.
HTTP Transport
The canonical MCP endpoint is POST /v1/mcp, aligned with the versioned REST prefix — POST /mcp remains as a compatibility alias; both are the same handler. Protocol versioning itself lives in the JSON-RPC protocolVersion field, not the URL path. The transport is stateless: every request is independent and initialize returns no Mcp-Session-Id — clients should not wait for or depend on a session header:
# Initialize
curl -X POST https://sentiqra.tech/v1/mcp \
-H "Authorization: Bearer $SENTIQRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","clientInfo":{"name":"my-app","version":"1.0"}}}'
# List tools
curl -X POST https://sentiqra.tech/v1/mcp \
-H "Authorization: Bearer $SENTIQRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
# Call a tool
curl -X POST https://sentiqra.tech/v1/mcp \
-H "Authorization: Bearer $SENTIQRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"detect_trust_safety","arguments":{"text":"you are a worthless idiot","language":"en"}}}'
Tool Reference
detect_trust_safety
Ground your AI moderation agent in 210 harmful-content labels across 16 languages. Instead of asking the LLM "is this harmful?" - ask Sentiqra what specifically, then let the LLM reason about the response.
text (string, required) - The text to analyzelanguage (string, default "en") - language code supported by the tool's analyzers (ISO 639-1, or 639-3 where no 639-1 code exists)
detect_crisis_intelligence
Deterministic crisis signal detection across 21 languages and 192 labels. Your OSINT agent surfaces briefing-ready evidence, not LLM speculation.
text (string, required) - The text to analyzelanguage (string, default "en") - language code supported by the tool's analyzers (ISO 639-1, or 639-3 where no 639-1 code exists)
detect_finance
200 market-event labels across 8 languages, ready for AI trading assistants and compliance agents. Every event surfaces with structured signals your MAR/MiFID II surveillance workflow accepts.
text (string, required) - The text to analyzelanguage (string, default "en") - language code supported by the tool's analyzers (ISO 639-1, or 639-3 where no 639-1 code exists)
detect_disinformation
200 manipulation-technique labels across 16 languages, with the "What We Don't Detect" policy shipped alongside. Your election-integrity or content-moderation agent gets mechanism detection - not political refereeing.
text (string, required) - The text to analyzelanguage (string, default "en") - language code supported by the tool's analyzers (ISO 639-1, or 639-3 where no 639-1 code exists)
detect_discrimination
Give your review agent structured discriminatory-language evidence across 17 languages, with labels for exclusionary framing, protected-class hostility, and biased treatment claims.
text (string, required) - The text to analyzelanguage (string, default "en") - language code supported by the tool's analyzers (ISO 639-1, or 639-3 where no 639-1 code exists)
detect_customer_service
Analyze customer messages against 200 support-intent labels across 18 languages, including billing issues, product problems, urgency, escalation, and feedback signals.
text (string, required) - The customer message to analyzelanguage (string, default "en") - language code supported by the tool's analyzers (ISO 639-1, or 639-3 where no 639-1 code exists)
Real Examples
These are live results from the deployed MCP endpoint, run under the analyzer's current deployed configuration - MCP tools do not take a configuration pin. Refresh the page and every response is identical - that's what deterministic means.
Trust & Safety - Harassment Detection
detect_trust_safety
you are a worthless idiot and nobody likes you
## Detection Results **Language:** en **Top Signals:** 1. Insults & Derogation (very high · 0.9) - Insult (very high · 0.9) - Belittling (very high · 0.9)
Crisis Intelligence - Displacement Report
detect_crisis_intelligence
More than 80,000 civilians have been forced to flee their homes due to intense artillery bombardment in the northern province.
## Detection Results **Language:** en **Top Signals:** 1. Humanitarian Migration (very high · 0.9) - Humanitarian Access (very high · 0.9) - Displacement (very high · 0.9)
Finance - Executive Fraud
detect_finance
The former CFO of Nexus Energy was indicted for executive fraud and insider trading following a massive accounting scandal. Authorities revealed that top management orchestrated an elaborate embezzlement scheme to hide massive corporate losses.
## Detection Results **Language:** en **Top Signals:** 1. Corporate Events (very high · 0.9) - Merger & Acquisition (very high · 0.9)
Protocol Details
JSON-RPC 2.0
The server speaks JSON-RPC 2.0. Each message is a JSON object with jsonrpc, id, method, and optional params.
MCP Version
Protocol version: 2025-06-18
Methods
initialize- handshake, returns server capabilitiesnotifications/initialized- client acknowledgment (notification)tools/list- returns available toolstools/call- calls a tool with argumentsping- health check
Tool Result Format
Tool results follow the MCP content format: an array of content blocks, each with type: "text" and a text field containing the human + AI readable result, including raw JSON for programmatic consumption. Results also carry structuredContent - the per-analyzer execution report (analyzers[], analyzer_runs, billed_runs, max_billable_runs) described in the execution & cost contract above.