A full-featured Model Context Protocol (MCP) server that provides seamless access to CustomGPT.ai APIs. Interact with your CustomGPT agents directly through Claude Code, Claude Web, and any MCP-compatible client. - List Agents: Browse all your CustomGPT agents with pagination - Get Agent Details: Retrieve detailed information about specific agents - Create Agents: Create new agents from sitemaps o
Add this skill
npx mdskills install Poll-The-People/customgpt-mcpComprehensive MCP server connecting Claude to CustomGPT.ai APIs with extensive agent and conversation tools
A full-featured Model Context Protocol (MCP) server that provides seamless access to CustomGPT.ai APIs. Interact with your CustomGPT agents directly through Claude Code, Claude Web, and any MCP-compatible client.
# Clone repository
git clone https://github.com/Poll-The-People/customgpt-mcp.git
cd customgpt-mcp
# Create Python 3.11 virtual environment (required for FastMCP)
python3.11 -m venv venv
source venv/bin/activate
# Install dependencies (includes FastMCP + CustomGPT SDK)
pip install -r requirements.txt
# Configure with your API key
cp .env.example .env
# Edit .env and add: CUSTOMGPT_API_KEY=your_actual_key
# Test the server
python server.py
git clone https://github.com/customgpt-ai/customgpt-mcp.git
cd customgpt-mcp
docker-compose up -d
# Clone the repository
git clone https://github.com/customgpt-ai/customgpt-mcp.git
cd customgpt-mcp
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\\Scripts\\activate
# Install dependencies
pip install -r requirements.txt
# Copy environment file and configure
cp .env.example .env
# Edit .env with your settings
# Run the server
python server.py
Create a .env file in the project root:
# API Settings
CUSTOMGPT_API_BASE=https://app.customgpt.ai
API_VERSION=v1
# Server Settings
HOST=0.0.0.0
PORT=8000
DEBUG=false
# CORS Settings
CORS_ORIGINS=https://claude.ai,https://chatgpt.com
# Security
API_KEY_MASK_CHARS=4
Add to your MCP settings:
{
"mcpServers": {
"customgpt": {
"command": "python",
"args": ["/path/to/customgpt-mcp/server.py"],
"env": {
"PYTHONPATH": "/path/to/customgpt-mcp"
}
}
}
}
https://your-deployed-server.railway.applist_agentsList all your CustomGPT agents with pagination support.
{
"api_key": "your_customgpt_api_key",
"page": 1,
"name": "filter_by_name",
"order": "desc"
}
get_agentGet detailed information about a specific agent.
{
"api_key": "your_customgpt_api_key",
"project_id": 123
}
create_agentCreate a new agent from a sitemap or files.
{
"api_key": "your_customgpt_api_key",
"project_name": "My New Agent",
"sitemap_path": "https://example.com/sitemap.xml",
"file_data_retention": true,
"is_ocr_enabled": false,
"is_anonymized": false
}
send_messageSend a message to any of your agents.
{
"api_key": "your_customgpt_api_key",
"project_id": 123,
"message": "Hello, how can you help me?",
"lang": "en",
"stream": false,
"is_inline_citation": false
}
list_conversationsList all conversations for a specific agent.
{
"api_key": "your_customgpt_api_key",
"project_id": 123,
"page": 1,
"order": "desc"
}
list_pagesList all pages/sources for an agent.
{
"api_key": "your_customgpt_api_key",
"project_id": 123,
"page": 1,
"limit": 20,
"crawl_status": "all",
"index_status": "all"
}
get_agent_statsGet statistics for an agent.
{
"api_key": "your_customgpt_api_key",
"project_id": 123
}
get_agent_settingsGet configuration settings for an agent.
{
"api_key": "your_customgpt_api_key",
"project_id": 123
}
search_api_documentationSearch the CustomGPT API documentation.
{
"query": "create agent",
"category": "Agents"
}
get_api_endpoint_detailsGet detailed information about a specific API endpoint.
{
"endpoint_path": "/api/v1/projects",
"method": "POST"
}
validate_api_keyValidate your CustomGPT API key.
{
"api_key": "your_customgpt_api_key"
}
# 1. Validate your API key
validate_api_key({"api_key": "your_key"})
# 2. List your agents
agents = list_agents({"api_key": "your_key", "page": 1})
# 3. Send a message to an agent
response = send_message({
"api_key": "your_key",
"project_id": 123,
"message": "What can you help me with?"
})
# Create a new agent from a sitemap
new_agent = create_agent({
"api_key": "your_key",
"project_name": "Customer Support Bot",
"sitemap_path": "https://mycompany.com/sitemap.xml"
})
# Get agent statistics
stats = get_agent_stats({
"api_key": "your_key",
"project_id": new_agent["agent"]["id"]
})
# List the agent's content pages
pages = list_pages({
"api_key": "your_key",
"project_id": new_agent["agent"]["id"]
})
Railway provides the best hosting experience for MCP servers with automatic HTTPS, custom domains, and easy scaling.
Environment Variables for Railway:
CUSTOMGPT_API_BASE=https://app.customgpt.ai
PORT=8000
PYTHONPATH=.
Serverless deployment option for lighter workloads.
npm i -g vercelvercelFor containerized deployment on any platform.
# Build and run
docker-compose up -d
# Or build manually
docker build -t customgpt-mcp .
docker run -p 8000:8000 -e CUSTOMGPT_API_BASE=https://app.customgpt.ai customgpt-mcp
For complete control over your deployment.
# Install dependencies
pip install -r requirements.txt
# Run with Gunicorn (production)
gunicorn -w 4 -k uvicorn.workers.UvicornWorker server:app
# Or run directly (development)
python server.py
The server provides comprehensive API documentation integration. Use the following tools to explore:
search_api_documentation - Search for specific functionalityget_api_endpoint_details - Get detailed endpoint informationcustomgpt://api-documentationdocs/openapi.json exists in the projectEnable debug logging by setting DEBUG=true in your environment:
DEBUG=true python server.py
The server provides health check endpoints:
/health - Basic server health/api/v1/health - API health with version infoWe welcome contributions! Please see our Contributing Guide for details.
# Clone and setup
git clone https://github.com/customgpt-ai/customgpt-mcp.git
cd customgpt-mcp
# Install development dependencies
pip install -r requirements.txt
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black .
ruff --fix .
# Type checking
mypy .
This project is licensed under the MIT License - see the LICENSE file for details.
*this is still in beta.
Install via CLI
npx mdskills install Poll-The-People/customgpt-mcpCustomGPT MCP Server is a free, open-source AI agent skill. A full-featured Model Context Protocol (MCP) server that provides seamless access to CustomGPT.ai APIs. Interact with your CustomGPT agents directly through Claude Code, Claude Web, and any MCP-compatible client. - List Agents: Browse all your CustomGPT agents with pagination - Get Agent Details: Retrieve detailed information about specific agents - Create Agents: Create new agents from sitemaps o
Install CustomGPT MCP Server with a single command:
npx mdskills install Poll-The-People/customgpt-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
CustomGPT MCP Server works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.