This server analyzes images by receiving URLs or local file paths and processing them with the GPT-4o-mini model. It provides detailed descriptions and content analysis of images through a simple interface that can be integrated with Claude Desktop App or similar tools.
The easiest way to install the Image Analysis Server for Claude Desktop is through Smithery:
npx -y @smithery/cli install @champierre/image-mcp-server --client claude
If you prefer to install manually:
# Clone the repository
git clone https://github.com/champierre/image-mcp-server.git
cd image-mcp-server
# Install dependencies
npm install
# Compile TypeScript
npm run build
The server requires an OpenAI API key to function:
OPENAI_API_KEY=your_openai_api_key
Add these settings to your cline_mcp_settings.json
:
{
"mcpServers": {
"image-analysis": {
"command": "node",
"args": ["/path/to/image-mcp-server/dist/index.js"],
"env": {
"OPENAI_API_KEY": "your_openai_api_key"
}
}
}
}
Add these settings to your claude_desktop_config.json
:
{
"mcpServers": {
"image-analysis": {
"command": "node",
"args": ["/path/to/image-mcp-server/dist/index.js"],
"env": {
"OPENAI_API_KEY": "your_openai_api_key"
}
}
}
}
After configuration, two tools become available:
analyze_image
: Processes images from URLsanalyze_image_from_path
: Processes images from local file pathsTo analyze an image from a URL:
Please analyze this image URL: https://example.com/image.jpg
To analyze an image from a local file:
Please analyze this image: /path/to/your/image.jpg
When using the analyze_image_from_path
tool, you must provide a valid file path in the environment where the server is running:
If running on WSL:
If running on Windows:
The AI assistant or execution environment is responsible for path conversion. The server interprets the received path as provided.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.