jl-image-vison
MCP server for image understanding that analyzes UI designs, HTML pages, and visual layouts using Agnes 2.0 Flash, returning structured descriptions with layout hierarchy, components, text, interactions, and accessibility notes.
README
jl-image-vison
MCP server for image understanding — structured description of UI designs, HTML pages, and visual layouts, powered by Agnes 2.0 Flash.
Tool: describe_image
Analyse an image and return a richly structured breakdown — layout hierarchy, UI components, readable text, interactions, design notes, and accessibility observations. Optimised for UI mockups, Figma exports, HTML/CSS screenshots, dashboards, and app interfaces.
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
image |
string | yes | The image to analyse. Accepts three formats: (1) a public URL — https://example.com/screenshot.png; (2) a local file path — ~/Desktop/mockup.png or C:\Users\you\shot.png; (3) a base64 data URL — data:image/png;base64,.... |
detail_level |
enum: standard | detailed | comprehensive |
no (default detailed) |
How thorough the description should be. |
focus |
string | no | Steering hint, e.g. "layout only", "extract all text", "focus on accessibility", "identify design system". |
Output
content[0].text— the full structured description (markdown).structuredContent— machine-readable fields:summary,description,model,tokens.
Setup
npm install
npm run build
Configuration
Environment variables (all optional except AGNES_API_KEY at runtime):
| Variable | Default | Description |
|---|---|---|
AGNES_API_KEY |
— | Your Agnes AI API key (required to call the tool). |
AGNES_BASE_URL |
https://apihub.agnes-ai.com/v1 |
Override the API base URL. |
AGNES_MODEL |
agnes-2.0-flash |
Override the model name. |
Get an API key from the Agnes AI developer console.
Connect to a host
Claude Code / Claude Desktop (stdio)
Add to your MCP config:
{
"mcpServers": {
"image-vison": {
"command": "node",
"args": ["D:/my/oss/jl_image-vison-mcp/dist/index.js"],
"env": {
"AGNES_API_KEY": "sk-your-key-here"
}
}
}
}
Any MCP client via npx
AGNES_API_KEY=sk-your-key npx tsx src/index.ts
Develop
npm run dev # run with tsx (no build step)
npm run typecheck # type-check only
npm run build # compile to dist/
npm run inspect # launch MCP Inspector for interactive testing
Limitations (v0.2)
- Single image — one image per call. Multi-image comparison is not yet supported.
- Agnes 2.0 Flash only — first release supports only this model.
- Local file size limit — 10 MB per image (Agnes payload limit).
- Claude Code pasted images — when you paste an image into Claude Code, it may pass a file path or a data URL; both are now supported. If you get a "Cannot read file" error, the path Claude Code passed doesn't exist on the server's filesystem — upload to a public URL instead.
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.