iqprompt-mcp
Standalone MCP server that proxies tool calls to the IQPROMPT API, enabling prompt enhancement and session creation through natural language.
README
iqprompt-mcp
Standalone Model Context Protocol server for IQPROMPT.
This repository is deployed independently (e.g. on Railway) and proxies MCP tool calls to the IQPROMPT HTTP API. By default it targets the dev environment:
https://dev.iqprompt.ai
Architecture
MCP client (ChatGPT OAuth / Cursor Bearer)
│ Streamable HTTP
▼
iqprompt-mcp (this service)
│ X-API-Key (per user)
▼
dev.iqprompt.ai
POST /api/suggest/suggest-prompt
POST /api/suggest/session/new
Tools
| Tool | Upstream endpoint |
|------|-------------------|
| enhance_prompt | POST /api/suggest/suggest-prompt |
| create_session | POST /api/suggest/session/new |
Authentication
ChatGPT (OAuth + paste API key)
-
In ChatGPT, add a custom MCP connector pointing at
https://mcp.iqprompt.ai/mcpwith OAuth. -
ChatGPT opens the IQPROMPT connect page.
-
User signs up / logs in at iqprompt.ai, copies their API key, and pastes it on the connect page.
-
MCP issues an OAuth access token bound to that key and uses it for
/api/suggest.
Cursor / Claude Desktop (Bearer API key)
Pass your IQPROMPT API key as a Bearer token (OAuth-protected /mcp requires Authorization):
{
"mcpServers": {
"iqprompt": {
"url": "https://mcp.iqprompt.ai/mcp",
"headers": {
"Authorization": "Bearer iq_your_api_key"
}
}
}
}
Do not set a shared IQPROMPT_API_KEY on Railway for multi-user deployments.
Local development
python -m venv .venv
.venv\Scripts\activate # Windows
# source .venv/bin/activate # macOS/Linux
pip install -r requirements.txt
pip install -e .
copy .env.example .env
# set MCP_PUBLIC_URL=http://localhost:8100
python -m iqprompt_mcp
| Endpoint | Purpose |
|----------|---------|
| http://localhost:8100/mcp | MCP Streamable HTTP |
| http://localhost:8100/connect | Paste API key (OAuth authorize UI) |
| http://localhost:8100/health | Health check |
| http://localhost:8100/.well-known/oauth-authorization-server | OAuth discovery |
Deploy to Railway
-
Create a new Railway project from this repository.
-
Railway builds with
Dockerfile(seerailway.toml). -
Set environment variables:
| Variable | Value |
|----------|-------|
| IQPROMPT_API_URL | https://dev.iqprompt.ai |
| MCP_PUBLIC_URL | https://mcp.iqprompt.ai |
| IQPROMPT_DASHBOARD_URL | https://iqprompt.ai |
| OAUTH_ENABLED | true |
PORT is injected automatically by Railway.
- Point ChatGPT at
https://mcp.iqprompt.ai/mcpwith OAuth authentication.
Production API
When ready for production upstream:
IQPROMPT_API_URL=https://api.iqprompt.ai
(Use your actual production API host if different.)
Environment variables
| Variable | Default | Description |
|----------|---------|-------------|
| IQPROMPT_API_URL | https://dev.iqprompt.ai | Upstream IQPROMPT API base URL |
| IQPROMPT_DASHBOARD_URL | https://iqprompt.ai | Login / signup / API key UI links |
| MCP_PUBLIC_URL | http://localhost:8100 | Public base URL of this MCP server (OAuth issuer) |
| OAUTH_ENABLED | true | Enable OAuth + /connect paste-key flow |
| IQPROMPT_API_KEY | — | Optional local fallback only |
| MCP_HOST | 0.0.0.0 | Bind host |
| PORT / MCP_PORT | 8100 | Listen port |
Notes
-
OAuth client registrations, codes, and tokens are stored in memory. Users may need to reconnect after a Railway redeploy.
-
Raw
iq_…keys sent asAuthorization: Bearerare accepted so Cursor works without the browser flow.
Docker
docker build -t iqprompt-mcp .
docker run --rm -p 8100:8100 \
-e IQPROMPT_API_URL=https://dev.iqprompt.ai \
-e MCP_PUBLIC_URL=http://localhost:8100 \
iqprompt-mcp
Repository note
This folder can live inside the main IQPROMPT monorepo during development, but it is intended to be hosted as its own Railway service and may be split into a separate Git repository when you are ready.
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.