Sponsored by Deepsite.site

Morelogin Mcp

Created By
ryanao8 months ago
Content

MoreLogin MCP API

MoreLogin MCP API 是一个基于 MoreLogin API 的 MCP 协议兼容实现,提供了浏览器环境管理、代理管理和分组管理等功能。

功能特点

  • 浏览器环境管理
    • 创建、获取、更新和删除浏览器环境
    • 批量操作浏览器环境
    • 环境模板管理
  • 代理管理
    • 代理服务器配置
    • 代理规则设置
    • 代理分组管理
  • 分组管理
    • 创建和管理分组
    • 批量分配环境到分组
    • 分组权限控制

安装

PyPI 安装

pip install morelogin-mcp

源码安装

git clone https://github.com/ryanao/morelogin-mcp.git
cd morelogin-mcp
pip install -e .

使用方法

作为独立服务运行

  1. 配置环境变量:
cp .env.example .env
# 编辑 .env 文件,填入您的 API 密钥
  1. 启动服务:
python -m morelogin_mcp.main

在 Cursor 应用中使用

from morelogin_mcp import MoreLoginClient, MCPHandler

# 创建客户端
client = MoreLoginClient(api_key="your_api_key")

# 创建处理器
handler = MCPHandler(client)

# 处理 MCP 请求
response = handler.handle_request({
    "method": "create_profile",
    "params": {
        "name": "test_profile",
        "platform": "windows",
        "browser": "chrome"
    }
})

API 文档

浏览器环境管理

创建环境

response = client.create_profile(
    name="test_profile",
    platform="windows",
    browser="chrome"
)

获取环境

profile = client.get_profile(profile_id="123")

更新环境

response = client.update_profile(
    profile_id="123",
    name="new_name",
    platform="mac"
)

删除环境

response = client.delete_profile(profile_id="123")

代理管理

添加代理

response = client.add_proxy(
    proxy_type="http",
    host="127.0.0.1",
    port=8080,
    username="user",
    password="pass"
)

获取代理列表

proxies = client.get_proxies()

更新代理

response = client.update_proxy(
    proxy_id="123",
    host="new.host.com",
    port=9090
)

删除代理

response = client.delete_proxy(proxy_id="123")

分组管理

创建分组

response = client.create_group(
    name="test_group",
    description="测试分组"
)

获取分组列表

groups = client.get_groups()

更新分组

response = client.update_group(
    group_id="123",
    name="new_name",
    description="新的描述"
)

删除分组

response = client.delete_group(group_id="123")

开发指南

环境设置

  1. 克隆仓库:
git clone https://github.com/ryanao/morelogin-mcp.git
cd morelogin-mcp
  1. 创建虚拟环境:
python -m venv venv
source venv/bin/activate  # Linux/Mac
# 或
.\venv\Scripts\activate  # Windows
  1. 安装开发依赖:
pip install -r requirements.txt
pip install -r requirements-dev.txt

运行测试

pytest

代码规范

  • 遵循 PEP 8 代码风格指南
  • 使用类型注解
  • 编写清晰的文档字符串
  • 为所有公共 API 编写单元测试

贡献指南

请参阅 CONTRIBUTING.md 文件了解如何贡献代码。

许可证

本项目采用 MIT 许可证,详见 LICENSE 文件。

联系方式

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
WindsurfThe new purpose-built IDE to harness magic
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Tavily Mcp
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Serper MCP ServerA Serper MCP Server
Playwright McpPlaywright MCP server
Amap Maps高德地图官方 MCP Server
DeepChatYour AI Partner on Desktop