Overview
All 13 Python products expose Model Context Protocol (MCP) servers via FastApiMCP. This enables AI assistants, development tools, and other MCP clients to interact with Anar products programmatically -- querying data, triggering actions, and receiving structured responses.
What is MCP?
The Model Context Protocol is an open standard for connecting AI models to external tools and data sources. Each Anar product registers its API endpoints as MCP tools, allowing AI assistants to discover and invoke them without custom integration code.
MCP Endpoints
Every Python product mounts its MCP server at the /mcp path:
| Product | MCP Endpoint |
|---|---|
| Chat | http://localhost:8001/mcp |
| Guard | http://localhost:8002/mcp |
| Voice | http://localhost:8003/mcp |
| Agents | http://localhost:8005/mcp |
| Comply | http://localhost:8004/mcp |
| Eval | http://localhost:8007/mcp |
| Docs | http://localhost:8008/mcp |
| Flow | http://localhost:8009/mcp |
| Insights | http://localhost:8010/mcp |
| Present | http://localhost:8011/mcp |
| Translate | http://localhost:8012/mcp |
| Minutes | http://localhost:8013/mcp |
| Procure | http://localhost:8014/mcp |
Gateway
The Gateway is written in Go and does not currently expose an MCP server. Use its OpenAI-compatible REST API directly.
Setting Up MCP in a Product
FastApiMCP automatically exposes all FastAPI routes as MCP tools. The setup in each product's main.py:
from fastapi import FastAPI
from fastapi_mcp import FastApiMCP
app = FastAPI(title="Anar Guard")
# ... define routes ...
mcp = FastApiMCP(app, name="anar-guard", description="AI Governance & Compliance")
mcp.mount()
The mount() call adds the /mcp endpoint to the FastAPI app. All routes registered before mount() are automatically exposed as MCP tools.
Connecting from Claude Desktop
Add the MCP server to your Claude Desktop configuration file (claude_desktop_config.json):
{
"mcpServers": {
"anar-guard": {
"url": "http://localhost:8002/mcp"
},
"anar-chat": {
"url": "http://localhost:8001/mcp"
},
"anar-translate": {
"url": "http://localhost:8012/mcp"
}
}
}
After restarting Claude Desktop, the tools from each Anar product appear in the tool list. You can then ask Claude to scan content with Guard, query knowledge bases in Chat, or translate documents.
Connecting from Claude Code
In Claude Code, add Anar MCP servers to your project configuration:
claude mcp add anar-guard http://localhost:8002/mcp
claude mcp add anar-chat http://localhost:8001/mcp
claude mcp add anar-docs http://localhost:8008/mcp
Available Tools per Product
Each product exposes its API routes as MCP tools. Here are key tools from each product:
Guard
scan_content-- Run text through policy engine and safety scanningdetect_pii-- Identify PII entities (national IDs, phone numbers, IBAN)list_policies-- List configured governance policiesget_compliance_report-- Generate GCC compliance report
Chat
query_knowledge_base-- RAG query against a knowledge baselist_conversations-- List chat conversationscreate_conversation-- Start a new conversationingest_document-- Upload a document to the knowledge base
Voice
transcribe_audio-- Transcribe audio with dialect detectionlist_transcriptions-- List past transcriptions
Translate
translate_text-- Translate text between languageslist_glossaries-- List translation glossariesimport_tmx-- Import translation memory from TMX
Docs
process_document-- OCR and extract text from a documentclassify_document-- Classify document typelist_documents-- List processed documents
Flow
list_workflows-- List available workflowstrigger_workflow-- Execute a workflow with inputsget_execution_status-- Check workflow execution status
Comply
run_assessment-- Run compliance assessment against a frameworklist_frameworks-- List available compliance frameworks
Present
generate_presentation-- Generate slides from a promptexport_pptx-- Export presentation as PPTXlist_presentations-- List generated presentations
Minutes
create_meeting-- Create a meeting recordupload_audio-- Upload meeting audio for transcriptionget_summary-- Get meeting summary with action items
Procure
analyze_tender-- Analyze a tender documentscore_bids-- Score and rank bidslist_tenders-- List tenders
Authentication
MCP requests follow the same JWT authentication as regular API calls. Include the Bearer token in your MCP client configuration if the product requires authentication:
{
"mcpServers": {
"anar-guard": {
"url": "http://localhost:8002/mcp",
"headers": {
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIs..."
}
}
}
}
Combining Multiple Products
The real power of MCP comes from connecting multiple Anar products to a single AI assistant. For example, a Claude assistant with access to Guard, Chat, and Docs can:
- Accept a document upload via Docs
- Extract text and tables with OCR
- Scan the content for PII with Guard
- Ingest the clean content into Chat's knowledge base
All orchestrated through natural language instructions to the assistant.