mcp-vision-server weekly downloads statistics
By goehou · npm · MCP servers
MCP stdio server for image recognition via an existing vision model
mcp-vision-server has 100,938 recorded weekly downloads on npm, an increase of 388123% over the past 30 days, ranking #638 of 3,247 tracked listings.
About mcp-vision-server
mcp-vision-server
mcp-vision-server is an MCP stdio server that lets MCP clients analyze images and run OCR through an existing OpenAI-compatible vision Chat Completions API.
This document focuses on how to configure and use the server from an MCP client.
What it provides
vision_analyze: general image understanding with a custom prompt.vision_ocr: OCR extraction with optional language and output-format hints.- Image input through exactly one of:
imagePath: a local absolute image path available to the MCP server process.imageUrl:http://,https://,data:, orfile://URL.imageBase64+imageMediaType: uploaded attachment bytes forwarded by the client.images: an array (up to 8) of the fields above, for multi-image calls such as comparisons.
- OpenAI-compatible upstream request shape: Chat Completions with text plus one or more
image_urlparts. - Automatic retry with backoff on upstream
429/5xx/network/timeout failures. - Size limits on local file, base64, and data-URL images to avoid excessive memory use.
- Optional in-memory result cache for identical (tool + prompt + images + options) calls.
- Structured MCP output in addition to plain text content.
Required configuration
The server needs an upstream vision model endpoint. At minimum configure:
| Setting | Required | CLI option | Environment variable | Description | Example |
|---|---|---|---|---|---|
| API base URL | Yes | --api-base-url | VISION_API_BASE_URL | Root URL of the upstream OpenAI-compatible API. Prefer scheme + host only; keep the request path in api-path. | https://api.openai.com |
| Model | Yes | --model | VISION_MODEL | Default vision-capable model exposed by the upstream API. A tool call can override it with model. | gpt-4o-mini |
| API key | Usually | --api-key | VISION_API_KEY | Bearer token sent as Authorization: Bearer <key>. Omit only when your endpoint does not require authentication. | sk-xxxx |
The final upstream URL is built from:
<api-base-url><api-path>
Example:
VISION_API_BASE_URL=https://api.openai.com
VISION_API_PATH=/v1/chat/completions
=> https://api.openai.com/v1/chat/completions
Full configuration reference
Configuration priority:
CLI arguments > environment variables > defaults
| Purpose | CLI option | Alias | Environment variable | Default | Notes |
|---|---|---|---|---|---|
| Upstream API base URL | --api-base-url <url> | --vision-api-base-url | VISION_API_BASE_URL | none | Required. Use the API root such as https://api.openai.com. |
| Upstream API path | --api-path <path> | --vision-api-path | VISION_API_PATH | /v1/chat/completions | Chat Completions endpoint path. |
| Upstream API key | --api-key <key> | --vision-api-key | VISION_API_KEY | none | Added as a Bearer token when set. |
| Default model | --model <name> | --vision-model | VISION_MODEL | none | Required. Must support image input. |
| Request timeout | --timeout-ms <ms> | --vision-timeout-ms | VISION_TIMEOUT_MS | 60000 | Invalid or non-positive environment values fall back to default. |
| Default output token limit | --max-tokens <n> | --vision-max-tokens | VISION_MAX_TOKENS | 4096 | Sent upstream as max_tokens when a tool call omits maxTokens. |
| Max image size | --max-image-bytes <n> | --vision-max-image-bytes | VISION_MAX_IMAGE_BYTES | 10485760 (10MB) | Applies to imagePath, imageBase64, and file:/data: URLs before the payload is held in memory. |
| Upstream retry count | --max-retries <n> | --vision-max-retries | VISION_MAX_RETRIES | 2 | Retries on 429/5xx/network/timeout failures, with exponential backoff. 0 disables retries. |
| Result cache TTL | --cache-ttl-ms <ms> | --vision-cache-ttl-ms | VISION_CACHE_TTL_MS | 300000 (5 min) | Caches identical (tool + prompt + images + options) results in memory. 0 or negative disables the cache. |
| MCP server name | --server-name <name> | --mcp-server-name | MCP_SERVER_NAME | mcp-vision-server | Metadata shown to the MCP client. |
| MCP server version | --server-version <ver> | --mcp-server-version | MCP_SERVER_VERSION | 0.2.0 | Metadata shown to the MCP client. |
Environment-style configuration example:
VISION_API_BASE_URL=https://api.openai.com
VISION_API_PATH=/v1/chat/completions
VISION_API_KEY=sk-xxxx
VISION_MODEL=gpt-4o-mini
VISION_TIMEOUT_MS=60000
VISION_MAX_TOKENS=4096
VISION_MAX_IMAGE_BYTES=10485760
VISION_MAX_RETRIES=2
VISION_CACHE_TTL_MS=300000
MCP_SERVER_NAME=mcp-vision-server
MCP_SERVER_VERSION=0.2.0
MCP client configuration
Most MCP clients should register this server as a stdio command. Replace the URL, key, and model with your provider values.
JSON config
Use this shape for clients that accept mcpServers JSON, such as Claude Desktop, Cursor, VS Code-compatible MCP configs, and similar clients:
{
"mcpServers": {
"vision": {
"command": "npx",
"args": [
"-y",
"mcp-vision-server",
"--api-base-url", "https://your-api.example.com",
"--api-path", "/v1/chat/completions",
"--api-key", "sk-xxxx",
"--model", "your-vision-model",
"--timeout-ms", "60000",
"--max-tokens", "4096"
]
}
}
}
If your client supports an env block, you can keep secrets out of args:
{
"mcpServers": {
"vision": {
"command": "npx",
"args": ["-y", "mcp-vision-server"],
"env": {
"VISION_API_BASE_URL": "https://your-api.example.com",
"VISION_API_PATH": "/v1/chat/completions",
"VISION_API_KEY": "sk-xxxx",
"VISION_MODEL": "your-vision-model",
"VISION_TIMEOUT_MS": "60000",
"VISION_MAX_TOKENS": "4096"
}
}
}
}
Codex…
Description from the npm listing.
- mcp
- model-context-protocol
- vision
- ocr
- multimodal
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (121)Similar npm MCP servers plugins
All 20 mcp-vision-server alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/mcp-vision-server. First seen Dec 4, 2026; last successful collection Dec 6, 2026. See the methodology.