iqprompt-mcp

iqprompt-mcp

Standalone MCP server that proxies tool calls to the IQPROMPT API, enabling prompt enhancement and session creation through natural language.

Category
Visit Server

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)

  1. In ChatGPT, add a custom MCP connector pointing at https://mcp.iqprompt.ai/mcp with OAuth.

  2. ChatGPT opens the IQPROMPT connect page.

  3. User signs up / logs in at iqprompt.ai, copies their API key, and pastes it on the connect page.

  4. 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

  1. Create a new Railway project from this repository.

  2. Railway builds with Dockerfile (see railway.toml).

  3. 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.

  1. Point ChatGPT at https://mcp.iqprompt.ai/mcp with 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 as Authorization: Bearer are 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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured