Skip to content

MCP Server

Platform Users — Engineers & Low-code Ops Users (ORA / Panel Builder) OR Platform ORA — AI Planning Interface Agent Workflows Plan Visualisation ADK Integration SDK UI — Frontend Shell FDK Architecture Low code Config-driven DDK Schema Definition Code Generator Generated Server MDK WEM DAL Experiment Manager Nexus Deployment Control Live Monitoring Registry Browser SCDK Source Control Pipeline Mgmt Azure DevOps deploys ↓ SDK API — GraphQL Federation Gateway Federation Gateway Component Resolvers Auth & Licensing Plugins: gql-autogeneration Migrator Helm KinD Boilerplate GenAI ··· Microservices — Domain IP Services Data Pipeline Core Platform Metrics & Analytics Spatial & Geo Simulation Event Detection Camera & Device Fire & Resource Opt. Satellite Modelling ↓ Nexus deploys Deployed OR Applications Rail Ops Dashboard Mine Mgmt Dashboard Port Ops Dashboard ··· FDK-built · DDK-backed · MDK-powered · deployed via Nexus ↑ Application Users — Operations Teams (shift managers, analysts, planners)

Overview

The MCP (Model Context Protocol) Server provides AI agents with structured access to platform tools and capabilities. It acts as a bridge between AI agents and operational systems, enabling agents to perform actions like file operations, database queries, web scraping, document generation, and code execution.

This service is designed for teams building autonomous AI workflows that need to interact with data systems, external APIs, and platform infrastructure.

Key Capabilities

File System Operations

  • Read/Write Files — Access and modify files in workflow storage
  • Directory Management — Create, list, and navigate directories
  • File Search — Find files by name or pattern
  • File Metadata — Get file info (size, modification time, permissions)

Database Operations

  • Query Execution — Run SQL queries against databases
  • Data Retrieval — Fetch structured data for analysis
  • Schema Inspection — Discover table structures and relationships
  • Connection Management — Handle multiple database connections

Web & API Integration

  • HTTP Requests — Call external REST APIs
  • Web Scraping — Extract data from websites
  • Response Parsing — Process JSON, XML, and HTML responses
  • Request Configuration — Headers, authentication, timeouts

Document Generation

  • PowerPoint Creation — Generate presentation slides programmatically
  • Document Conversion — Convert between document formats
  • Template Rendering — Fill templates with dynamic data
  • Export Options — Save in various formats

Vector Store & RAG

  • Document Indexing — Add documents to vector stores for semantic search
  • Similarity Search — Find relevant documents based on queries
  • Embeddings Generation — Create vector representations of text
  • RAG Integration — Enable retrieval-augmented generation for AI agents

Code Execution

  • Python Execution — Run Python code dynamically
  • Result Capture — Get outputs and error messages
  • Sandboxed Environment — Safe execution isolation
  • Library Access — Use installed Python packages

Use Cases

Automated Data Collection

Scenario: An AI agent needs to gather data from multiple sources (databases, APIs, web pages) to compile a report.

Workflow:

  1. Agent queries database for structured data
  2. Agent calls external API for supplementary info
  3. Agent scrapes company website for recent announcements
  4. Agent compiles all data into comprehensive report

Value: Automate multi-source data gathering that would otherwise require manual effort.

Document Automation

Scenario: Generate weekly status presentations automatically from operational data.

Workflow:

  1. Agent queries database for KPIs and metrics
  2. Agent generates charts and visualizations
  3. Agent creates PowerPoint slides from template
  4. Agent populates slides with data and insights
  5. Agent saves and distributes presentation

Value: Save time on routine reporting tasks while maintaining consistency.

Intelligent File Management

Scenario: Organize and process files based on content and metadata.

Workflow:

  1. Agent scans directory for new files
  2. Agent reads and categorizes each file
  3. Agent moves files to appropriate folders
  4. Agent generates summary of processing actions
  5. Agent notifies team of completed organization

Value: Keep file systems organized without manual sorting.

Scenario: An AI agent answers questions by searching through document collections.

Workflow:

  1. User submits question to agent
  2. Agent generates embeddings for question
  3. Agent searches vector store for relevant documents
  4. Agent retrieves top matching passages
  5. Agent synthesizes answer from retrieved context

Value: Enable accurate, context-aware answers from large document collections.

MCP Tools Available

File System Tools

  • read_file — Read file contents
  • write_file — Write data to file
  • list_directory — List directory contents
  • create_directory — Create new directory
  • search_files — Find files matching pattern

Database Tools

  • execute_query — Run SQL query
  • fetch_data — Retrieve query results
  • get_schema — Inspect database schema
  • list_tables — List available tables

Web Tools

  • make_request — HTTP GET/POST/PUT/DELETE requests
  • scrape_page — Extract data from web page
  • parse_html — Process HTML content
  • download_file — Download file from URL

Document Tools

  • create_pptx — Generate PowerPoint presentation
  • convert_document — Convert between formats
  • apply_template — Fill document template

RAG Tools

  • add_document — Index document in vector store
  • search_similar — Find similar documents
  • generate_embedding — Create text embedding

Execution Tools

  • run_python — Execute Python code
  • import_module — Load Python library
  • capture_output — Get execution results

Configuration

MCP Server tools can be configured with:

  • Database Connections — Connection strings for databases
  • API Credentials — Auth tokens for external services
  • File Paths — Base directories for file operations
  • Execution Limits — Timeouts and resource constraints
  • Vector Store Settings — Embedding models and search parameters

Integration with AI Agents

The MCP Server is primarily used through the AI Agent Python model:

  1. AI Agent receives task requiring external tools
  2. Agent identifies needed tools from MCP Server
  3. Agent calls MCP tools with appropriate parameters
  4. MCP Server executes operations and returns results
  5. Agent incorporates results into its workflow

Security Considerations

When using MCP Server tools:

  • Limit Tool Access — Only provide tools needed for the task
  • Validate Inputs — Ensure agent-provided parameters are safe
  • Monitor Usage — Track which tools are being called and why
  • Sandbox Execution — Isolate code execution from critical systems
  • Audit Logs — Keep records of all tool invocations

Performance Notes

  • Tool Calls Add Latency — Each tool call is a network round-trip
  • Batch When Possible — Group related operations together
  • Cache Results — Reuse outputs when inputs haven't changed
  • Timeout Appropriately — Set reasonable limits for long-running operations

Getting Started

Basic Usage

MCP Server tools are typically accessed through AI agents rather than directly. Configure the AI Agent with access to specific MCP tools based on your use case.

Example: Database Query Agent

[AI Agent: Question] → [MCP: Execute Query] → [MCP: Fetch Results] → [AI Agent: Answer]

This flow has an agent answer a question by querying a database using MCP tools.

Example: Document Generation

[AI Agent: Plan Report] → [MCP: Query Data] → [MCP: Create PPTX] → [Save Presentation]

This flow generates a presentation by querying data and creating slides using MCP tools.

Best Practices

Tool Selection

  • Only enable tools that the agent actually needs
  • Start with read-only tools, add write capabilities carefully
  • Monitor agent tool usage patterns to optimize access

Error Handling

  • Agents should handle tool failures gracefully
  • Implement retry logic for transient failures
  • Log errors for debugging and improvement

Resource Management

  • Set appropriate timeouts to prevent hangs
  • Limit concurrent tool calls to prevent overload
  • Clean up resources (files, connections) after use

Next Steps

User documentation for Optimal Reality