MCP.so
登录

Lens MCP Server

@bysages

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

bysages

提交者

Macro Demo (Demo Macro)

关于 Lens MCP Server

A high-performance image proxy and web services toolkit built with modern TypeScript. Lens provides a comprehensive suite of web utilities including image processing, screenshot capture, font serving, and more.

Lens MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "lens": {
      "url": "https://api.bysages.com/mcp"
    }
  }
}

Lens MCP Server 工具

6

Extract article content from a URL as Markdown (default) or cleaned HTML. Returns title, content, and metadata.

Capture a screenshot of a website. Returns a base64-encoded image.

Extract the favicon of a website. Returns a base64-encoded PNG image.

Generate a dynamic Open Graph image with custom title, description, and styling.

Get a Gravatar avatar by email or MD5 hash. Returns a base64-encoded image.

Transform and optimize an image (resize, crop, format convert, quality adjust). Returns a base64-encoded image.

概览

What is Lens?

Lens is a high-performance image proxy and web services toolkit built with modern TypeScript. It provides a comprehensive suite of web utilities including image processing, screenshot capture, font serving, and more, all exposed as an MCP server via JSON-RPC 2.0 over HTTP.

How to use Lens?

Clone the repository, install dependencies with pnpm, copy .env.example to .env, and run pnpm dev to start the development server on http://localhost:3000. For MCP server use, configure Claude Desktop with the URL https://api.bysages.com/mcp in claude_desktop_config.json.

Key features of Lens

  • Image proxy with IPX-powered resize, format conversion, and optimization
  • Website screenshot capture with Playwright-aligned options and caching
  • Article content extraction (Markdown/HTML) via the Reader service
  • Google Fonts compatible API (v1 and v2) with variable font support
  • Dynamic Open Graph image generation
  • Smart favicon extraction from multiple sources with fallback
  • Cached Gravatar avatar proxy supporting email or hash input

Use cases of Lens

  • Transform and optimize images on-the-fly for web performance
  • Capture screenshots of websites for previews or archiving
  • Extract clean article content from any URL for reading
  • Serve custom fonts with a Google Fonts compatible endpoint
  • Generate dynamic OG images for social media sharing
  • Retrieve Gravatar avatars with caching and drop-in API replacement

常见问题

1

What is the MCP server in Lens?

Lens exposes all its services as tools via a JSON-RPC 2.0 MCP server endpoint (`POST /mcp`), allowing AI assistants like Claude to use image processing, screenshots, content extraction, and more.

2

What runtime dependencies does Lens require?

Lens requires Node.js 22+ and pnpm 10+ (or npm). Optional Redis caching significantly improves performance; without Redis, services degrade gracefully.

3

How are responses cached in Lens?

Cached responses include `X-Cache` headers (HIT/MISS) and `ETag` headers for conditional 304 responses. Most services cache results for 24 hours (screenshots, OG images) or 30 days (favicons).

4

What transports and authentication does Lens support?

Lens runs over HTTP. No authentication is mentioned in the README; security is handled via optional `ALLOWED_DOMAINS` environment variable for the image proxy. The MCP server uses HTTP POST.

5

Are there any rate limiting features?

Yes, Lens includes rate limiting for expensive operations like screenshot capture to protect server resources.

评论

其他 分类下的更多 MCP 服务器