
ifmelate/mcp-image-extractor
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
에이전트 모드에서 LLM을 허용하는 MCP 서버가 필요할 때마다 이미지를 분석할 수 있습니다
개요
MCP 서버는 LLM 분석을 위해 base64로 이미지를 추출하고 변환합니다. 이 MCP 서버는 AI 조수에 대한 도구를 제공합니다 : - 로컬 파일에서 이미지를 추출 - URL에서 이미지를 추출 - Process Base64 인코딩 이미지 적당한 케이스: - 해석 playwright 시험 결과: 스크린 샷 이 MCP 서버를 설치 하는 권장 방법은 npx를 사용하여 직접 .cursor/mcp.json 파일: 이 접근법: - 자동적으로 최신 버전을 설치 - 글로벌 설치가 필요하지 않습니다 - 다른 환경에 의존하지 않습니다. 패키지의 로컬 설치를 선호한다면 저장소를 복제하고 내장 된 파일에 포인트를 복제 할 수 있습니다. 이것은 전 세계적으로 mcp-image-extractor 명령을 만들 것입니다. : "고객을 만들기 위해 실패" 오류가 발생하면 위의 로컬 경로 설치 방법을 시도하거나 실행할 수있는 올바른 경로를 사용합니다.
개요(AI 번역)
MCP 서버는 LLM 분석을 위해 base64로 이미지를 추출하고 변환합니다.
이 MCP 서버는 AI 조수에 대한 도구를 제공합니다:
- 로컬 파일에서 이미지 추출
- URL에서 이미지 추출
- Process Base64 인코딩된 이미지
커서에서 보는 방법:
적당한 케이스:
- playwright 테스트 결과 분석 : 스크린 샷
설치
추천: mcp.json에서 npx 사용 (이소)
MCP 서버를 설치하는 권장 방법은 npx를 사용하여 직접 .cursor/mcp.json 파일:
이 접근법:
- 자동 설치 최신 버전
- 글로벌 설치가 필요하지 않습니다.
- 다른 환경에서 안정적으로 작동
대안: 로컬 경로 설치
패키지의 로컬 설치를 선호한다면 저장소를 복제하고 내장 된 파일에 포인트를 복제 할 수 있습니다.
수동 설치
이것은 mcp-image-extractor 명령을 전 세계적으로 만들 것입니다.
그런 다음 .cursor/mcp.json에서 설정:
** Cursor Users**에 대한 Troubleshooting: “고객을 만들기 위해 실패” 오류가 발생하면 위의 로컬 경로 설치 방법을 시도하거나 실행할 수있는 올바른 경로를 사용해야합니다.
사용 가능한 도구
추출물 image from file
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP Image Extractor
MCP server for extracting and converting images to base64 for LLM analysis.
This MCP server provides tools for AI assistants to:
- Extract images from local files
- Extract images from URLs
- Process base64-encoded images
How it looks in Cursor:
Suitable cases:
- analyze playwright test results: screenshots
Installation
Recommended: Using npx in mcp.json (Easiest)
The recommended way to install this MCP server is using npx directly in your .cursor/mcp.json file:
{
"mcpServers": {
"image-extractor": {
"command": "npx",
"args": [
"-y",
"mcp-image-extractor"
]
}
}
}
This approach:
- Automatically installs the latest version
- Does not require global installation
- Works reliably across different environments
Alternative: Local Path Installation
If you prefer to use a local installation of the package, you can clone the repository and point to the built files:
{
"mcpServers": {
"image-extractor": {
"command": "node",
"args": ["/full/path/to/mcp-image-extractor/dist/index.js"],
"disabled": false
}
}
}
Manual Installation
# Clone and install
git clone https://github.com/ifmelate/mcp-image-extractor.git
cd mcp-image-extractor
npm install
npm run build
npm link
This will make the mcp-image-extractor command available globally.
Then configure in .cursor/mcp.json:
{
"mcpServers": {
"image-extractor": {
"command": "mcp-image-extractor",
"disabled": false
}
}
}
Troubleshooting for Cursor Users: If you see “Failed to create client” error, try the local path installation method above or ensure you’re using the correct path to the executable.
Available Tools
extract_image_from_file
Extracts an image from a local file and converts it to base64.
Parameters:
file_path(required): Path to the local image file
Note: All images are automatically resized to optimal dimensions (max 512x512) for LLM analysis to limit the size of the base64 output and optimize context window usage.
extract_image_from_url
Extracts an image from a URL and converts it to base64.
Parameters:
url(required): URL of the image to extract
Note: All images are automatically resized to optimal dimensions (max 512x512) for LLM analysis to limit the size of the base64 output and optimize context window usage.
extract_image_from_base64
Processes a base64-encoded image for LLM analysis.
Parameters:
base64(required): Base64-encoded image datamime_type(optional, default: “image/png”): MIME type of the image
설치
npx -y mcp-image-extractor설정
{
"mcpServers": {
"image-extractor": {
"command": "npx",
"args": [
"-y",
"mcp-image-extractor"
]
}
}
}