npm optiqra-mcpstdioMITupdated 23d ago
An MCP (Model Context Protocol) server that exposes every tool in OptiQra's API to MCP-compatible AI clients (Claude Desktop, Claude Code, Cursor, etc.).
optiqra mcp 能做什么?
optiqra-mcp
An MCP (Model Context Protocol) server that exposes every tool in OptiQra's API to MCP-compatible AI clients (Claude Desktop, Claude Code, Cursor, etc.).
OptiQra has four HTTP endpoints. This server wraps all four as MCP tools:
| Tool | OptiQra endpoint | What it does |
|---|---|---|
optiqra_analyze |
POST /api/analyze |
Crawls a URL and runs the full SEO/GEO/AEO/perf/a11y/security audit |
optiqra_ai_fix |
POST /api/ai-fix |
Generates an AI-written fix for one issue from a report |
optiqra_ai_insights |
POST /api/ai-insights |
Generates a site-wide AI strategy summary across a full report |
optiqra_ai_test |
POST /api/ai-test |
Verifies a provider/API key/model combo works before using the two above |
By default it talks to the public demo, https://optiqra.vercel.app. Point
it at your own deployment (see OptiQra's own DEPLOYMENT.md/Docker setup)
with an env var — see below.
Install
npm install
(or, once published, npm install -g optiqra-mcp / run directly with npx optiqra-mcp)
Configuration (environment variables)
| Variable | Required | Purpose |
|---|---|---|
OPTIQRA_BASE_URL |
No | Base URL of the OptiQra instance to call. Defaults to https://optiqra.vercel.app. |
OPTIQRA_PROVIDER_API_KEY |
No | A default AI-provider API key used by optiqra_ai_fix/optiqra_ai_insights/optiqra_ai_test if the model doesn't pass one. Recommended over letting the model handle the key in plaintext. |
OPTIQRA_TIMEOUT_MS |
No | Request timeout in ms. Defaults to 120000 (full-site crawls can be slow). |
Run it standalone
node src/index.js
It speaks MCP over stdio, so you won't see anything happen — it's waiting for an MCP client to connect.
Wire it into an MCP client
Claude Desktop / Claude Code
Add to your MCP config (claude_desktop_config.json, or via claude mcp add
for Claude Code):
{
"mcpServers": {
"optiqra": {
"command": "node",
"args": ["/absolute/path/to/optiqra-mcp/src/index.js"],
"env": {
"OPTIQRA_BASE_URL": "https://optiqra.vercel.app",
"OPTIQRA_PROVIDER_API_KEY": "sk-..."
}
}
}
}
Any other MCP-compatible client (Cursor, Windsurf, etc.) uses the same
`command`/`args`/`env` shape — check that client's docs for where the config
file lives.
## Notes on the AI-key tools
`optiqra_ai_fix`, `optiqra_ai_insights`, and `optiqra_ai_test` all need a
provider API key, exactly like pasting one into OptiQra's own UI — OptiQra's
server forwards it straight to the provider (OpenAI, Anthropic, Google, Groq,
OpenRouter, Mistral, DeepSeek, or xAI) and never stores it. This server does
the same: it never persists keys. Prefer setting `OPTIQRA_PROVIDER_API_KEY`
in your MCP client's env config over having the model pass a key through
chat.
安装
把 optiqra mcp 添加到你的客户端。选择你正在使用的那个。
claude mcp add optiqra-mcp -- npx -y optiqra-mcpcodex mcp add optiqra-mcp -- npx -y optiqra-mcpamp mcp add optiqra-mcp -- npx -y optiqra-mcp{
"mcpServers": {
"optiqra-mcp": {
"command": "npx",
"args": [
"-y",
"optiqra-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"optiqra-mcp": {
"command": "npx",
"args": [
"-y",
"optiqra-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"optiqra-mcp","command":"npx","args":["-y","optiqra-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"optiqra-mcp": {
"command": "npx",
"args": [
"-y",
"optiqra-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"optiqra-mcp": {
"command": "npx",
"args": [
"-y",
"optiqra-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"optiqra-mcp": {
"command": "npx",
"args": [
"-y",
"optiqra-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"optiqra-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"optiqra-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"optiqra-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"optiqra-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y optiqra-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
评分
39 / 100
不完整
- 文档22/25
- 维护19/25
- 可信度13/20
- 能力0/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 15 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 1.0.4最新 | 2026年8月16日 |