FairCom MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FairCom MCP ServerList all tables in the database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FairCom MCP Server
Connect AI assistants and LLMs to FairCom databases with production-grade safety controls, Linux packaging, and operational discipline.
┌─────────────────────────────────────────────────────────────┐
│ Your AI Assistant (Claude, Copilot, etc.) │
└────────────────────┬────────────────────────────────────────┘
│ MCP Protocol
│ (HTTP + JSON-RPC)
┌────────────────────▼────────────────────────────────────────┐
│ FairCom MCP Server │
│ • Session management │
│ • Write safety enforcement (confirm_write=true) │
│ • Tool exposure control │
│ • Rate limiting, observability │
└────────────────────┬────────────────────────────────────────┘
│ FairCom JSON API
│ (HTTP REST)
┌────────────────────▼────────────────────────────────────────┐
│ FairCom Database │
│ (Edge, DB, RTG, ISAM, MQ) │
└─────────────────────────────────────────────────────────────┘Why FairCom MCP?
✅ Open source – Apache 2.0, transparent, community-driven
✅ Production ready – systemd service, log rotation, health checks
✅ Safe by default – Explicit write confirmation, tool allowlisting
✅ Portfolio-wide – Works with Edge, DB, RTG, ISAM, MQ
✅ AI-native – Purpose-built for Claude, Copilot, local LLMs
Use Cases
1. Business Intelligence & Reporting
Empower business users to ask natural language questions about FairCom data.
Example: "What were our top 5 products by revenue last quarter?"
The AI assistant translates this to SQL, queries FairCom, and summarizes results with visualizations.
# FairCom MCP exposes:
# sql_query(statement, params?) → fetch data
# list_tables(name_like?) → discover schema
# list_table_columns(table_name) → understand structure2. Data Integration & ETL
Automate data pipelines that read/write to FairCom.
Example: Sync customer data from SaaS → FairCom using AI-guided transformations.
# The AI assistant can:
# 1. List available tables (list_tables)
# 2. Inspect target schema (describe_table)
# 3. Execute transformations (sql_execute with confirm_write=true)
# 4. Validate results (sql_query to spot-check)3. Operational Analytics
Real-time status monitoring and anomaly detection.
Example: "Show me any orders with payment processing delays."
# FairCom MCP provides:
# - /metrics → Prometheus-compatible metrics
# - /diagnostics → System health
# - sql_query → Run diagnostic queries
# Combine for full observability loop4. Domain-Specific AI Chatbots
Build internal tools (CRM, inventory, compliance).
Example: Chatbot for warehouse staff to check inventory levels, process returns.
# Sandbox the chatbot with:
# FAIRCOM_TOOL_GROUP_ALLOWLIST=metadata,query
# (write tools disabled for read-only workflows)
#
# FAIRCOM_SQL_DENYLIST=DELETE,DROP
# (prevent destructive operations)Quick Start (5 Minutes)
Option 1: Docker (Fastest)
# Start FairCom MCP pointing to your FairCom instance
docker run -d --name faircom-mcp \
-p 8000:8000 \
-e FAIRCOM_API_BASE_URL=http://faircom-host:8080 \
-e FAIRCOM_API_USERNAME=ADMIN \
-e FAIRCOM_API_PASSWORD=ADMIN \
toddstoffel/faircom-mcp:latest --transport httpOption 2: Linux Package (Production)
Debian/Ubuntu:
sudo apt-get install -y ./faircom-mcp_0.1.3_all.deb
sudo systemctl enable --now faircom-mcpRHEL/Rocky/AlmaLinux:
sudo dnf install -y ./faircom-mcp-0.1.3-1.noarch.rpm
sudo systemctl enable --now faircom-mcpVerify it's running:
# Health check
curl -fsS http://127.0.0.1:8000/health
# Output: {"status":"healthy"}
# List available tables
curl -i -X POST http://127.0.0.1:8000/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-03-26",
"capabilities": {},
"clientInfo": {"name": "test", "version": "1.0"}
}
}' | head -20Tutorial: Query Your First Table
Let's query FairCom using Claude or a local LLM via FairCom MCP.
Step 1: Initialize MCP Session
curl -i -X POST http://127.0.0.1:8000/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-03-26",
"capabilities": {},
"clientInfo": {"name": "my-client", "version": "1.0"}
}
}' 2>&1 | grep -i "mcp-session-id"
# Save the session ID from the response, e.g.: abc123
SESSION_ID="abc123"Step 2: List Tables
curl -X POST http://127.0.0.1:8000/mcp \
-H "Mcp-Session-Id: $SESSION_ID" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
--data '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list",
"params": {}
}' 2>&1 | grep -A 5 "list_tables"Step 3: Describe a Table
# Let's examine the "customers" table
curl -X POST http://127.0.0.1:8000/mcp \
-H "Mcp-Session-Id: $SESSION_ID" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
--data '{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "describe_table",
"arguments": {"table_name": "customers"}
}
}' 2>&1 | tail -20Step 4: Query Data
# Count customers
curl -X POST http://127.0.0.1:8000/mcp \
-H "Mcp-Session-Id: $SESSION_ID" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
--data '{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "sql_query",
"arguments": {
"statement": "SELECT COUNT(*) as total FROM customers"
}
}
}' 2>&1 | tail -20Step 5: Configure in Claude/Copilot
For Claude Desktop:
{
"mcpServers": {
"faircom": {
"type": "http",
"url": "http://127.0.0.1:8000/mcp"
}
}
}For GitHub Copilot (VS Code):
{
"mcpServers": {
"faircom": {
"type": "http",
"url": "http://127.0.0.1:8000/mcp"
}
}
}Then ask your AI assistant: "Show me a count of customers by region" – it will use FairCom MCP to execute the query.
Configuration
Edit /etc/faircom-mcp/faircom-mcp.env (package install) or pass as environment variables (Docker):
# Required: FairCom connectivity
FAIRCOM_API_BASE_URL=https://faircom.example.com:9443
FAIRCOM_API_USERNAME=ADMIN # or use FAIRCOM_API_TOKEN
FAIRCOM_API_PASSWORD=ADMIN
# Optional: Server binding
FAIRCOM_HTTP_HOST=0.0.0.0
FAIRCOM_HTTP_PORT=8000
# Optional: TLS
FAIRCOM_TLS_VERIFY=true # Set to false for self-signed certs
# Optional: Safety controls
FAIRCOM_TOOL_GROUP_ALLOWLIST=metadata,query,write,admin,diagnostics
FAIRCOM_SQL_ALLOWLIST=SELECT,INSERT,UPDATE,DELETE
FAIRCOM_SQL_DENYLIST=DROP,TRUNCATE,ALTERAvailable Tools
Tool | Purpose | Safety |
| Discover tables | Read-only |
| Get columns, indexes, constraints | Read-only |
| Column names and types | Read-only |
| Index details | Read-only |
| Execute SELECT (read-only) | Read-only |
| Paginated SELECT | Read-only |
| INSERT/UPDATE/DELETE (requires | Write |
| Health, version, diagnostics | Read-only |
Observability & Operations
Health Endpoints
GET /health # Simple health check (JSON)
GET /healthz # Kubernetes-style liveness
GET /ready # Readiness check (JSON)
GET /readyz # Kubernetes-style readiness
GET /metrics # Prometheus-compatible metrics
GET /diagnostics # Human-readable diagnostics
GET /diagnostics/json # Machine-readable diagnosticsLogs
Package install:
journalctl -u faircom-mcp -f # Follow logs
journalctl -u faircom-mcp --since 1h # Last hourDocker:
docker logs -f faircom-mcpLog Rotation
Package install includes logrotate policy:
/var/log/faircom-mcp/faircom-mcp.log {
daily
rotate 7
compress
delaycompress
notifempty
missingok
}Development
See BUILD.md for building, testing, and releasing.
Community
Issues: GitHub Issues
Discussions: GitHub Discussions
Contributing: See CONTRIBUTING.md (coming soon)
License
Licensed under the Apache License, Version 2.0. See LICENSE for terms.
Support
For FairCom-specific questions: https://www.faircom.com/support
For MCP integration issues: Open a GitHub issue
Built for the FairCom community. Query with confidence. Automate with safety.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/toddstoffel/faircom-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server