Custom MCP Server
Provides a proxy layer for interacting with OpenAI-compatible chat completion APIs, enabling session-based conversational memory, context management, and resilient agent calls.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Custom MCP ServerAsk the agent: "What's the weather like today?""
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Custom MCP Server
A custom MCP (Model Control Proxy) server that sits between clients and an OpenAI-compatible chat-completion backend. It provides:
Input validation, normalization, and chunking
Session-based conversational memory (in-memory store, swappable)
Sliding-window context management with rough token capping
Prompt construction with injectable system instructions
Resilient async agent calls (timeout + single retry on 429/5xx)
This is the MVP scope (milestones M1 + M2). Streaming, real summarization, persistent stores, and auth are deferred.
Requirements
Python 3.11+
uv (package & environment manager)
Related MCP server: MCP Server with LLM Integration
Install
uv sync --all-extras
# activate the environment
source .venv/bin/activateConfigure
cp .env.example .env
# edit .env and set AGENT_API_KEY, AGENT_API_BASE_URL, AGENT_MODELRun
uv run uvicorn app.main:app --reload --port 8000Endpoints
POST /agent/input
curl -s http://localhost:8000/agent/input \
-H 'Content-Type: application/json' \
-d '{"user_input": "Hello!"}'GET /session/{id}
curl -s http://localhost:8000/session/<session_id>DELETE /session/{id}
curl -X DELETE http://localhost:8000/session/<session_id>GET /health
curl -s http://localhost:8000/healthTest
uv run pytest -qLayout
app/
main.py FastAPI app, logging, health
config.py Settings (pydantic-settings)
api/ HTTP routers
models/schemas.py Pydantic request/response models
core/ input_processor, context_manager, prompt_builder, agent_client
storage/ SessionStore protocol + in-memory implementation
utils/ logging + token estimation
tests/ pytest suite (agent backend mocked)
docs/ Design documentation (architecture, data model, API, ADRs)Design documentation
See docs/ for the full design package:
docs/architecture.md— system context, container, component, sequence, and deployment diagrams (Mermaid)docs/data-model.md— Session / Message ER diagram and lifecycledocs/api.md— HTTP API spec and error modeldocs/adr/— Architecture Decision Records
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Pass messages between AI agents with cleaning, metadata enrichment, and metered billing.
Drop-in proxy keeping OpenAI Assistants API calls working past the August 26, 2026 sunset, plus a Th
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceHigh-performance Model Context Protocol server supporting multiple LLM providers (OpenRouter, OpenAI, Groq) with WebSocket API and conversation history persistence.
- AlicenseNot gradedqualityDmaintenanceEnables chat with multiple LLM providers (OpenAI and Anthropic) while maintaining persistent conversation memory. Provides extensible tool framework for various operations including echo functionality and conversation storage/retrieval.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to connect to and chat with multiple LLM models (OpenAI, OpenRouter, custom endpoints) with conversation history management and model switching capabilities.3172MIT
- AlicenseAqualityBmaintenanceBridges MCP clients (like Claude Desktop) to A2A agents, enabling message sending and agent card retrieval via a stateless, non-persistent server.3MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/JacobRyu/custom-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server