Clarity MCP Server

Clarity MCP Server

Enables AI assistants to call web APIs extracted from HAR files, turning browser traffic into MCP tools.

Category
访问服务器

README

Clarity MCP Bootleg Market

Turn browser traffic into tool calls. Smuggle your network requests into an MCP.

What's This All About?

Clarity is where you come when you need to get your hands on some Model Context Protocols (MCPs). Our server connects AI assistants like Claude with web APIs extracted from your HAR files. Think of it as a way to "borrow" functionality from websites and turn it into something AI can use.

How It Works

sequenceDiagram
    participant Client as MCP Client (Claude)
    participant Server as Clarity Server
    participant Backend as Clarity Backend
    participant API as Target Web APIs

    note over Client,API: HAR File Processing
    Backend->>Backend: Process HAR file
    Backend->>Backend: Extract API endpoints
    Backend->>Backend: Generate tools with AI
    Backend->>Backend: Store in database

    note over Client,API: Runtime Flow
    Client->>Server: Connect via stdio
    Client->>Server: ListTools request
    Server->>Backend: Forward request
    Backend->>Server: Return available tools
    Server->>Client: Deliver tools to client

    Client->>Server: CallTool request
    Server->>Server: Transform tool name
    Server->>Backend: Forward to backend
    Backend->>API: Execute API call
    API->>Backend: Return response
    Backend->>Server: Return result
    Server->>Client: Deliver to client

Installation

# Install the package
npm install -g @lekt9/clarity-mcp

# Set up your credentials
export CLARITY_API_KEY=your_api_key
# Optional: Specify a specific MCP ID if you have multiple MCPs
export CLARITY_MCP_ID=your_mcp_id

# Run the server
clarity-mcp

Creating MCPs

To create your own Model Context Protocols from HAR files:

  1. Visit https://www.theclarityproject.net
  2. Upload your HAR file
  3. The platform will process the file and generate the necessary tools
  4. Obtain your API key from the website

The Underground MCP Market

Premium Agent Tools

MCPs are the secret sauce that AI agents crave. These Model Context Protocols are powerful tools that agents use to interact with external services and fetch real-time data. Without them, AI is trapped in its own bubble.

APIs in Designer Clothes

Let's be real - MCPs are just APIs with fancy clothes on. They follow OpenAPI specs like any other API, but they're packaged nicely for AI consumption. It's the same product, different wrapping - pure marketing genius.

Reverse Engineering the Good Stuff

Every website out there is constantly sending network requests. With the right tools, you can capture these requests, reverse engineer them, and create your own bootleg copy of their API. It's like photocopying someone else's premium content.

From Traffic to Premium MCP

Our system takes your ordinary HAR files and transforms them into high-quality MCPs that any AI agent would pay top dollar for. We analyze the endpoints, parameters, and responses to create a perfect replica that tools can consume.

Tip: When an AI agent uses a tool, it's making an API call through an MCP. By creating these protocols, you can extend AI capabilities to interact with virtually any digital service.

Smuggling Guide

A HAR (HTTP Archive) file captures all the network requests your browser makes while interacting with a website. Follow these steps to create one:

Step 1: Open Developer Tools

Right-click anywhere on the webpage and select "Inspect" or "Inspect Element". Alternatively, use these keyboard shortcuts:

  • Chrome/Edge/Firefox (Windows): F12 or Ctrl+Shift+I
  • Chrome/Edge/Firefox (Mac): Option+Cmd+I
  • Safari (Mac): Enable Develop menu first (Safari > Preferences > Advanced > Show Develop menu), then Option+Cmd+I

Step 2: Record Network Activity

In the Developer Tools panel, navigate to the "Network" tab.

  • Ensure recording is active (usually a red circle icon).
  • Check the "Preserve log" option to keep requests across page loads.
  • Optional: Clear existing logs using the clear icon for a cleaner capture.
  • Perform the actions on the website that trigger the API calls you want to capture (e.g., logging in, loading data, submitting a form).

Interact with the site thoroughly to ensure all desired requests are recorded.

Step 3: Export HAR File

Once you've captured the necessary activity, right-click anywhere in the list of network requests.

  • Select "Save all as HAR with content" (or similar wording like "Export HAR...").
  • Choose a location to save the .har file.

You can now upload this HAR file using the uploader on the Clarity website.

Important: HAR files can contain sensitive information like cookies, authentication tokens, and personal data. Handle them securely and avoid sharing them publicly.

Usage with Claude

  1. Install the Claude Desktop application
  2. Open Claude settings and navigate to the MCP section
  3. Add a new MCP server with this command:
    npx -y @smithery/cli@latest install @lekt9/clarity-mcp --claude
    
  4. Start a conversation with Claude and use the tools provided by your Clarity MCP

Environment Variables

  • CLARITY_API_KEY: API key for authenticating with the Clarity backend
  • CLARITY_MCP_ID: Optional MCP ID to specify which MCP to use (useful if you have multiple MCPs)
  • NEXTJS_APP_URL: URL of the Clarity backend (defaults to https://clarity.org/)

Technical Details

Architecture

The server follows a simple proxy architecture:

  1. MCP Protocol Handling: Implements the MCP protocol for client communication
  2. Request Forwarding: Forwards client requests to the Clarity backend
  3. Response Transformation: Transforms responses to match MCP protocol requirements

Key Components

  • Server Class: Main server implementation using the MCP SDK
  • Request Handlers: Handlers for ListTools and CallTool requests
  • Name Transformation: Functions to convert between naming conventions
  • Error Handling: Proper error propagation and handling

Development

To run the server in development mode:

# Clone the repository
git clone https://github.com/lekt9/clarity-mcp.git
cd clarity-mcp

# Install dependencies
npm install

# Build the server
npm run build

Limitations

  • The server requires a valid API key to make authenticated requests to the backend
  • Tool execution depends on the availability of the Clarity backend
  • The server does not cache tool definitions or results

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选