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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器