Self-Evolving MCP Brain
A self-updating MCP system that analyzes design and code inputs with an LLM, refines them through conversation, and crystallizes approved patterns into a local skill library for MCP agents.
README
Self-Evolving MCP Brain
A self-updating MCP (Model Context Protocol) system: analyze design/code inputs with an LLM, converse to refine them, then crystallize approved patterns into a local skill library that MCP agents can read.
Components
| File | Role | Port |
|---|---|---|
mcp_server.py |
FastMCP server; exposes skills://rhythm-standards resource |
(stdio MCP) |
ui_server.py |
FastAPI backend — bridges UI ↔ freellmapi proxy | 8000 |
frontend_server.py |
Static server for the Vue 3 SPA | 3000 |
freellmapi_client.py |
Raw-HTTP client for the freellmapi proxy (no OpenAI SDK) | — |
frontend/index.html |
Vue 3 chat UI + code preview | — |
.mcp_skills/ |
Crystallized skills library (read by the MCP resource) | — |
Prerequisites
- Python 3.10+ (built on 3.12).
- The
freellmapiproxy running locally onhttp://localhost:3001(it is a Node/Docker app, not a Python package). - A unified key from the proxy's Keys page.
Setup
python3 -m venv .venv && . .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # then edit FREELLMAPI_KEY
set -a; source .env; set +a # export env vars into your shell
Run (Phase 2)
# Terminal A — UI backend
python ui_server.py # :8000
# Terminal B — frontend
python frontend_server.py # :3000
Open http://localhost:3000.
Phase status
- Phase 1 ✅ MCP server + resource.
- Phase 2 ✅ Conversational analyzer UI + freellmapi integration.
- Phase 3 ✅ Crystallization pipeline (APPROVE & CRYSTALLIZE button).
- Phase 4 ✅ End-to-end test with a real link.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.