MCP-Codex: Model Context Protocol Tool Orchestration
@twolven
A MCP server for calling MCP tools remotely without requiring installation.
Overview
What is MCP-Codex: Model Context Protocol Tool Orchestration?
MCP-Codex is a service for orchestrating Model Context Protocol (MCP) servers, allowing AI assistants to dynamically discover and utilize tools without requiring restarts. It features “The Librarian,” an intelligent agent that understands user needs and connects them with the right tools. This project is discontinued and shared as an educational resource.
How to use MCP-Codex: Model Context Protocol Tool Orchestration?
Install by cloning the repository, running pip install -r requirements.txt, creating config, data, logs, tools directories, and configuring the .env file. Start the Codex Service with python codex-serv.py and the MCP Client with python mcp-codex.py. For Claude Desktop, use mcp install mcp-codex.py. The client registers two tools: search (find tools for a task) and call_tool (execute discovered tools).
Key features of MCP-Codex: Model Context Protocol Tool Orchestration
- Dynamic tool discovery without restarting the AI assistant
- Centralized management of MCP tools
- Remote execution of tools beyond the local machine
- Intelligent agent “The Librarian” for context-aware recommendations
- Standardized interface for tool search and execution
Use cases of MCP-Codex: Model Context Protocol Tool Orchestration
- An AI assistant dynamically finds and calls a stock analysis tool like StockFlow
- Options trading analysis and strategy evaluation via OptionsFlow
- Code management, editing, and execution with CodeSavant tools
- Stock screening and filtering using StockScreen capabilities
- General use: any task where an AI needs to discover and run MCP tools on demand
FAQ from MCP-Codex: Model Context Protocol Tool Orchestration
What problem does MCP-Codex solve?
Traditional MCP implementations require static configuration and restarting the assistant when adding new tools. MCP-Codex enables dynamic discovery and execution, reducing operational complexity.
What are the main components?
The project consists of the Codex Service (core execution), the Librarian Service (planned AI-powered tool recommendation), and the MCP Client (interface for AI assistants).
How does tool discovery work?
The AI assistant uses the search tool to find relevant capabilities via natural language, then executes the discovered tool through the call_tool tool, which the Codex Service handles.
Is this project still actively developed?
No. This project was discontinued after Cloudflare released a similar service. The code is shared as an educational resource and example of MCP orchestration architecture.
What are the dependencies and runtime requirements?
Python 3.10+ and required packages from requirements.txt. The tool registry is configured in config/codex.yaml and the environment via a .env file.