MCP Hub
Back to servers

Nexus-MCP

A fully local, open-source MCP server that replaces Azure AI Foundry, enabling model management, inference, evaluation, and RAG using Ollama without any cloud dependencies.

glama
Updated
Apr 28, 2026

#Nexus-MCP ( Foundry-Reverse )

Newer Foundry MCP reverse-engineered to work on Ollama


A fully local, open-source alternative to the Azure AI Foundry MCP Server, powered entirely by Ollama.
No Azure subscription, no API keys, no cloud required.

Features

CategoryTools
Healthhealth_check
Model Managementlist_models, get_model_info, pull_model, delete_model, list_running_models, compare_models
Inferencegenerate, chat
Evaluationevaluate_response, evaluate_agent
Knowledge / RAGcreate_index, list_indexes, add_document, query_knowledge, delete_index

Plus MCP Resources (ollama://models, ollama://running, ollama://indexes) and reusable Prompts (summarize, rag_answer, code_review).

Requirements

  • Python 3.12+
  • Ollama running locally (ollama serve)
  • uv (recommended) or pip

Quick Start

# 1. Clone
git clone https://github.com/deadSwank001/Foundry-Reverse.git
cd Foundry-Reverse

# 2. Copy and edit configuration
cp .env.example .env

# 3. Run the MCP server (stdio transport)
uv run foundry-reverse

VS Code / Copilot Integration

Copy mcp.json to your VS Code workspace .vscode/mcp.json (or user-level MCP config), then restart VS Code.

{
  "mcpServers": {
    "foundry-reverse": {
      "command": "uv",
      "args": ["run", "foundry-reverse"],
      "env": {
        "OLLAMA_BASE_URL": "http://localhost:11434"
      }
    }
  }
}

Configuration

VariableDefaultDescription
OLLAMA_BASE_URLhttp://localhost:11434Ollama API endpoint
OLLAMA_TIMEOUT120Request timeout in seconds
EMBED_MODELnomic-embed-textOllama model used for embeddings
JUDGE_MODEL(first available)Ollama model used as evaluator
KNOWLEDGE_STORE_PATH.foundry_knowledge.jsonPath for the local RAG store

Development

# Install deps (including dev)
uv sync --all-groups

# Run tests
uv run pytest

Architecture

src/foundry_reverse/
├── __init__.py          # Package version
├── server.py            # FastMCP server – all tools, resources, prompts
├── ollama_client.py     # Async Ollama REST API client
├── evaluation.py        # LLM-as-judge evaluation helpers
└── knowledge.py         # In-memory vector store (cosine similarity + Ollama embeddings)

Comparison with Azure AI Foundry MCP

FeatureAzure Foundry MCPFoundry-Reverse
Model catalogAzure AI model registryLocal Ollama models
InferenceAzure OpenAI / serverlessOllama (/api/generate, /api/chat)
EmbeddingsAzure OpenAI embeddingsOllama (/api/embeddings)
Vector searchAzure AI SearchIn-memory cosine similarity
EvaluationAzure AI Evaluation SDKLocal LLM-as-judge
AuthAzure Service Principal / keysNone (local only)
CostPay-per-tokenFree

Reviews

No reviews yet

Sign in to write a review