
ia-programming/mcp-images
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
## MCP-Images 강력한 이미지 처리 서버를 찾고 계십니까? MCP Server-Image는 몇 줄의 코드로 엔터프라이즈급 이미지 처리 기능을 제공합니다.
개요
A Model Context Protocol (MCP) 서버는 URL, 로컬 파일 경로 및 numpy 배열에서 이미지를 가져오고 처리하는 도구를 제공합니다. 서버는 MIME 유형과 함께 base64-encoded 문자열로 이미지를 반환하는 fetch images라는 도구가 포함되어 있습니다. 이 프로젝트가 도움이되고 미래 프로젝트를 지원하려는 경우, 우리에게 커피를 구입하십시오! 귀하의 지원은 혁신적인 AI 솔루션을 지속적으로 구축할 수 있습니다. 당신의 기여는 지능형 및 사용자 친화적 인 응용 프로그램을 만들기 위해 열정을 연료로 공급하는 데 오랜 시간이 걸립니다. - URL (http/https)의 Fetch 이미지 - 로컬 파일 경로에서 이미지로드 - 대형 로컬 이미지에 대한 특수 처리 - 대형 이미지에 대한 자동 이미지 압축 (>1MB) - 여러 이미지의 병렬 처리 - 다른 파일 확장을위한 Proper MIME 유형 매핑 - 포괄적인 오류 처리 및 로깅 - Python 3.10 + - uv 패키지 관리자 (추천) 1. 이 저장소 2.
개요(AI 번역)
A Model Context Protocol (MCP) 서버는 URL, 로컬 파일 경로 및 numpy 배열에서 이미지를 가져오고 처리하는 도구를 제공합니다. 서버는 MIME 유형과 함께 base64-encoded 문자열로 이미지를 반환하는 fetch images라는 도구가 포함되어 있습니다.
지원
이 프로젝트가 도움이되고 미래 프로젝트를 지원하려는 경우, 우리에게 커피를 구입하십시오! 귀하의 지원은 혁신적인 AI 솔루션을 지속적으로 구축할 수 있습니다.
당신의 기여는 지능형 및 사용자 친화적 인 응용 프로그램을 만들기 위해 열정을 연료로 공급하는 데 오랜 시간이 걸립니다.
내용 표
- 특징
- 필수
- 설치
- 서버 실행
- 직접 방법
- Windsurf/Cursor에 대한 구성
- 사용 가능한 도구
- 사용 예제
- 디버깅
- 기여
- 라이센스
특징
- URL의 그림 (http/https)
- 로컬 파일 경로의 로드 이미지
- 큰 지역 이미지에 대한 특수 처리
- 대형 이미지용 자동 이미지 압축(>1MB)
- 여러 이미지의 병렬 처리
- 다른 파일 확장자를 위한 Proper MIME 유형 매핑
- 포괄적인 오류 처리 및 로깅
필수품
- 파이썬 3.10+
- uv 패키지 관리자 (추천)
설치
- 명세.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP Server - Image
A Model Context Protocol (MCP) server that lets an AI assistant look at images. Its fetch_images tool loads images from URLs or local file paths and returns them in a form LLM clients can display, downscaling and recompressing them when needed so they fit client limits.
Support Us
If you find this project helpful and would like to support future projects, consider buying us a coffee! Your support helps us continue building innovative AI solutions.
Your contributions go a long way in fueling our passion for creating intelligent and user-friendly applications.
Table of Contents
- Features
- Prerequisites
- Installation
- Running the Server
- Client Configuration
- Available Tools
- Configuration
- Testing and Debugging
- Contributing
- License
Features
- Fetch images from
http(s)URLs (redirects followed) and local paths, including~/...andfile://URIs - Detects the real format from the file contents, so wrong extensions and
application/octet-streamresponses (e.g. Telegram’s file API) still work - Reads JPEG, PNG, GIF, WebP, BMP, TIFF, ICO, PPM, TGA and AVIF; returns JPEG, PNG, GIF and WebP as-is when they are small enough and converts the rest to PNG or JPEG. Other formats are refused (EPS, for instance, would run Ghostscript)
- Downscales to 1568px on the longer edge; all images in one call share a ~700 KB budget (about 930 KB once base64-encoded), under the ~1 MB tool-result limit Claude Desktop is reported to enforce
- Keeps transparency (PNG) when possible, applies EXIF rotation, and converts palette, 1-bit and 16-bit images without losing their tones
- Optional SVG support: small icons are rendered large enough to read, and an SVG cannot pull in other local files or URLs
- Processes up to 20 sources per call in parallel; a failed source returns a message saying why, in its position in the list
Prerequisites
- Python 3.11+
- uv (recommended)
- For SVG support only: the native Cairo library
- Debian/Ubuntu:
sudo apt install libcairo2 - macOS:
brew install cairo(on Apple Silicon, also setDYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/libfor the server) - Windows: install the GTK3 runtime. Its default folder (
C:\Program Files\GTK3-Runtime Win64\bin) is found automatically; for another location, or another app that bundleslibcairo-2.dll, setCAIROCFFI_DLL_DIRECTORIESto that folder
- Debian/Ubuntu:
Installation
git clone https://github.com/IA-Programming/mcp-images.git
cd mcp-images
uv sync # core
설치
uvx --from git+https://github.com/IA-Programming/mcp-images mcp-image설정
{
"mcpServers": {
"image": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-images", "--extra", "svg", "mcp-image"]
}
}
}