Table of Content
A practical guide to agent development based on mcphost

Updated on:July-12th-2025
Recommendation
Using the lightweight CLI tool mcphost, you can easily develop MCP Server agents.
Core content:
1. Features and advantages of the lightweight CLI tool mcphost
2. MCP Server configuration and basic usage based on mcphost
3. Practical example: using mcp-go SDK to crawl specific URLs and parse content
Yang Fangxian
Founder of 53AI/Most Valuable Expert of Tencent Cloud (TVP)
export OPENAI_API_KEY=xxxxx. # Set the Qianwen API key
export OPENAI_URL= 'https://dashscope.aliyuncs.com/compatible-mode/v1'
mcphost \
--openai-url $OPENAI_URL \
--model openai:qwen-max \
--config ./mcp.json
The MCP Server built by mark3labs/mcp-go SDK implements specific URL crawling and content parsing, and finally formats the output. The specific steps are as follows:
Receive Python code and dependency list generated by large model Execute code in a separate Docker environment Capture stdout/stderr and return the result
Question 1: Get the latest 10 Go open source projects with > 50 stars
Additional question 2: Describe the first project in detail
As you can see from the above two tasks, the system automatically triggers the python-executor tool and completes the corresponding URL crawling and content output in turn.