Skip to main content

FrootAI

FrootAI

MCP Server (Python)

From the Roots to the Fruits. It's simply Frootful.

An open ecosystem where Infra, Platform, and App teams build AI — Frootfully.

A uniFAIng glue for the GenAI ecosystem, enabling deterministic and reliable AI solutions.

PyPI downloads license


The Philosophy Behind FrootAI — The Essence of the FAI Engine

FrootAI is an intelligent way of packaging skills, knowledge, and the essential components of the GenAI ecosystem — all synced, not standalone. Infrastructure, platform, and application layers are woven together so that every piece understands and builds on the others. That's what "from the roots to the fruits" means: a fully connected ecosystem where Infra, Platform, and App teams build AI — Frootfully.

The FROOT Framework

FROOT+V = Foundations · Reasoning · Orchestration · Operations · Transformation · Voice

Layer What You Learn
F Tokens, models, glossary, Agentic OS
R Prompts, RAG, grounding, deterministic AI
O Semantic Kernel, agents, MCP, tools
O Azure AI Foundry, GPU infra, Copilot ecosystem
T Fine-tuning, responsible AI, production patterns

The FAI Ecosystem

FAI Ecosystem — Factory builds, Packages deliver, Toolkit equips


Quick Start

Requirements: Python >= 3.10

pip install frootai-mcp

Run as MCP Server

frootai-mcp-py

Use in Python

from frootai_mcp.server import mcp

# Run as MCP server (stdio transport)
mcp.run(transport="stdio")

Or call tools directly:

import asyncio
from frootai_mcp.server import search_knowledge, wire_play

result = asyncio.run(search_knowledge(query="RAG architecture"))
print(result)

Connect to Your Agent

VS Code / GitHub Copilot .vscode/mcp.json:

{
  "servers": {
    "frootai": {
      "type": "stdio",
      "command": "frootai-mcp-py"
    }
  }
}
Claude Desktop / Cursor
{
  "mcpServers": {
    "frootai": {
      "command": "frootai-mcp-py"
    }
  }
}

MCP Capabilities

Capability Count Description
Tools 62 Full MCP tools with annotations
Resources 4 URI templates for modules, plays, glossary, overview
Prompts 6 Guided workflows for architecture, review, scaffold
Search BM25 358 docs × 8,627 terms, Robertson IDF
Plays 101 Solution architectures from starter to enterprise
Primitives 863+ Agents, instructions, skills, hooks, plugins

MCP Tools (62)

Knowledge (6) — bundled knowledge, works offline

  • list_modules — browse FROOT knowledge modules by layer
  • get_module — read any module in full
  • lookup_term — AI/ML glossary lookup (comprehensive glossary)
  • search_knowledge — BM25 full-text search across all modules
  • get_architecture_pattern — architecture decision guides
  • get_froot_overview — complete framework summary

Solution Plays (5) — 101 pre-architected solutions

  • list_solution_plays — list all 101 plays with filters
  • get_play_detail — full play info with infra, tuning, complexity
  • semantic_search_plays — BM25-powered play matching
  • compare_plays — side-by-side play comparison
  • generate_architecture_diagram — Mermaid.js diagrams

Agent Chain (3) — build → review → tune

  • agent_build — architecture guidance + recommended play
  • agent_review — security, quality, compliance audit
  • agent_tune — production readiness + tuning recommendations

Azure / Live (4) — Azure AI intelligence

  • get_model_catalog — model catalog with pricing tiers
  • get_azure_pricing — service pricing by tier
  • compare_models — side-by-side model comparison
  • estimate_cost — itemized monthly cost per play

Ecosystem (5) — platform awareness

  • get_github_agentic_os — .github Agentic OS guide
  • list_community_plays — community plugin marketplace
  • fetch_azure_docs — Azure documentation links
  • fetch_external_mcp — discover MCP servers
  • get_play_spec — SpecKit with WAF alignment

FAI Engine (5) — protocol wiring

  • wire_play — generate fai-manifest.json for a play
  • inspect_wiring — check what primitives are connected
  • validate_manifest — validate fai-manifest.json schema
  • validate_config — validate AI config parameters
  • evaluate_quality — run quality evaluation (groundedness, relevance, etc.)

Live Evaluation (1)v6.6+

  • run_eval_live — POST test cases to a live endpoint, score with simple/LLM-as-judge evaluator, return aggregate mean/p95 vs threshold + per-case rows

Prompt Iteration (1)v6.8.1+

  • prompt_dry_run — test a system prompt with a single sample query without deploying. Calls Azure OpenAI when AZURE_OPENAI_ENDPOINT is set, else uses a deterministic shim (zero tokens). Returns the response + lightweight self-checks (citations, abstention, refusal, length, optional groundedness hint via lexical overlap with context/groundTruth) + iteration suggestions.

Marketplace (4) — primitive discovery

  • list_marketplace — browse AI primitives by type
  • get_primitive_detail — get detail for a specific primitive
  • search_marketplace — keyword search across all primitives
  • embedding_playground — v6.7+ similarity comparison with auto-selected backend (azure-openai 1536-dim when env set, else char-ngram TF-IDF cosine, with jaccard back-compat)

Scaffold (5) — project bootstrapping

  • scaffold_play — scaffold a new play with DevKit structure
  • smart_scaffold — describe what you want, get the best play
  • list_templates — available scaffold templates by complexity
  • preview_scaffold — dry-run preview of scaffold output
  • scaffold_status — check scaffold completeness

Component & Config Scaffolding (3)v6.4+

  • scaffold_component — copy-paste-ready code for a single Azure AI building block (15 components: speech, search, openai, content-safety, key vault, cosmos, event hub, etc.)
  • get_play_config — starter configs for a play (openai.json, search.json, speech.json, call-flow.json, etc.)
  • get_dependencies — pinned dependency lists per language for a solution play

IaC Generation (1)v6.5+

  • generate_bicep — play-specific Bicep IaC with Managed Identity, RBAC, tags, optional private endpoints (plays 01, 03, 04, 06, 09, 14, 17, 21)

Workspace (1)v6.2+

  • analyze_workspace — inspect cwd: detected play, primitives, configs, Bicep services, FAI manifest, gaps + recommendations (sandboxed)

Extra (8) — specialized utilities

  • run_evaluation — run evaluation with custom thresholds
  • get_bicep_best_practices — Bicep IaC best practices
  • list_primitives — list primitives by type
  • get_waf_guidance — WAF pillar guidance
  • check_play_compatibility — check if plays can compose
  • get_learning_path — curated learning paths by topic
  • export_play_config — export play config as JSON
  • get_version_info — server version and capabilities

Runtime & Federation (10) — lean delivery, trust, and external MCP routing

  • fai_lean / fai_full — switch between compact and full-fidelity content
  • marketplace_spec / trust_evidence — inspect bundled attach specs and publisher evidence
  • fai_attach_mcp / fai_detach_mcp — attach and release trust-gated MCP areas
  • fai_list_attached / fai_discover_mcp — inspect active areas and discover compatible servers
  • fai_trust_query / fai_invoke_via — evaluate trust and route a tool call through an area

MCP Resources (4)

URI Description
fai://modules/{module_id} Read FROOT module without tool call
fai://plays/{play_id} Read solution play without tool call
fai://glossary/{term} Look up glossary term without tool call
fai://overview Platform overview without tool call

MCP Prompts (6)

Prompt Description
design_architecture Guided AI architecture design
review_config Structured config review for production
pick_solution_play Conversational play selection
estimate_costs Azure cost estimation workflow
scaffold_project Project bootstrapping workflow
learn_fai_protocol FAI Protocol educational walkthrough

What Ships Inside

Component Details
FROOT Knowledge Knowledge modules across 5 layers (682KB)
BM25 Search Index 358 documents × 8,627 terms, pre-computed IDF
Solution Plays 101 pre-architected Azure AI solutions
AI Glossary Comprehensive glossary extracted from modules
FAI Protocol Manifest schema for play wiring
Architecture Guides RAG, agents, hosting, cost, security

Feature parity with the Node.js MCP server — same MCP tools, same knowledge, same FAI Engine.


Testing

pip install pytest
cd python-mcp
python -m pytest tests/ -v
# 516 non-live tests (live provider suites are opt-in)

Links

Resource Link
Website frootai.dev
Setup Guide FAI Packages Setup
Python SDK PyPI — frootai
Node MCP Server npm — frootai-mcp
VS Code Extension Marketplace
Docker Image GitHub Container Registry
GitHub frootai/frootai
Contact info@frootai.dev

© 2026 FrootAI — MIT License

AI architecture · MCP · model-context-protocol · Python · Azure · RAG · agents · copilot · semantic-kernel · open-source · frootai

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frootai_mcp-6.1.0.tar.gz (528.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

frootai_mcp-6.1.0-py3-none-any.whl (534.5 kB view details)

Uploaded Python 3

File details

Details for the file frootai_mcp-6.1.0.tar.gz.

File metadata

  • Download URL: frootai_mcp-6.1.0.tar.gz
  • Upload date:
  • Size: 528.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for frootai_mcp-6.1.0.tar.gz
Algorithm Hash digest
SHA256 7484b758995dc848a89fcd1e5f6f5ca0ef9a70faa7541c9af5fd1489632748d1
MD5 1a6f55144a00a5c4e3f7ced5e9d23ce9
BLAKE2b-256 90b98ca39f100ddc23830f17d4532323a9fb56a63f0fd4c66b9564dc38487618

See more details on using hashes here.

File details

Details for the file frootai_mcp-6.1.0-py3-none-any.whl.

File metadata

  • Download URL: frootai_mcp-6.1.0-py3-none-any.whl
  • Upload date:
  • Size: 534.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for frootai_mcp-6.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1f4c2fcd0a10cfabce01fe46905ae47ddb1a7790ed91876c11c6364c1625978
MD5 3d5d34b748002267e01867b9bc5a1bf6
BLAKE2b-256 0a2e586a1cf81c058d90f71f2e5598d83d3c04d45a75b4d3b73b97ddd70f8972

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page