
web_to_code_mcp
基于Go语言的网页解析和代码生成工具,支持MCP服务调用。
Repository Info
About This Server
基于Go语言的网页解析和代码生成工具,支持MCP服务调用。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Web to Code MCP
项目简介
这是一个基于Go语言的网页转代码工具,通过MCP服务提供网页内容解析和代码生成功能。
核心功能
- 解析网页内容并提取主要文本
- 根据指定编程语言生成代码
- 自动添加详细注释和错误处理
- 支持通过MCP服务远程调用
安装指南
- 确保已安装Go 1.24或更高版本
- 克隆项目仓库
- 安装依赖:
go mod download
使用方法
- 启动服务:
go run main.go
- 通过MCP客户端调用
web_to_code工具 - 提供网页URL和目标编程语言
MCP 配置
{
"mcpServers": {
"web_to_code": {
"url": "http://127.0.0.1:8080/sse"
}
}
}
依赖
- github.com/PuerkitoBio/goquery
- github.com/ThinkInAIXYZ/go-mcp
许可证
MIT License (见LICENSE文件)
Quick Start
Clone the repository
git clone https://github.com/justinwongcn/web_to_code_mcpInstall dependencies
cd web_to_code_mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.