simple-MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@simple-MCPshow me my system information"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
simple-MCP
一个最小的 MCP (Model Context Protocol) server 示例,通过 stdio 暴露一个查询本机硬件信息的工具。
依赖
Python >= 3.13
Related MCP server: mcpscope
安装
uv sync运行
uv run main.pyserver 以 stdio 传输方式启动,等待 MCP 客户端连接。
工具
get_host_info
无参数,返回结构化的主机信息:
字段 | 类型 | 说明 |
| string | 操作系统名称,如 Darwin / Linux / Windows |
| string | 内核版本号 |
| string | CPU 架构,如 x86_64 / arm64 |
| string | 处理器标识,部分平台可能为空 |
| number | 物理内存总量,单位 GB |
| integer | 逻辑核心数,无法探测时为 -1 |
| string | CPU 型号名称,无法探测时为 Unknown |
返回类型是 pydantic model HostInfo,MCP 会据此生成自描述的 output schema,客户端无需解析字符串。
CPU 型号按平台探测:macOS 用 sysctl machdep.cpu.brand_string,Linux 读 /proc/cpuinfo,Windows 读 PROCESSOR_IDENTIFIER,全部失败时回退到 platform 模块。
客户端配置
{
"mcpServers": {
"hostInfoMcp": {
"command": "uv",
"args": ["--directory", "/path/to/simple-MCP", "run", "main.py"]
}
}
}本地验证
uv run tools.py # 直接打印主机信息 JSONMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that publishes CLI tools on your machine for discoverability by LLMsLast updated61MIT
- FlicenseAqualityCmaintenanceA simple local MCP server that provides greeting and integer addition tools.Last updated2
- FlicenseAqualityDmaintenanceLightweight MCP server that exposes tools for system information and weather lookup, designed for agent integration via stdio.Last updated1
- AlicenseAqualityCmaintenanceA minimal MCP server that provides a single 'hello' tool returning 'Hello, world!'.Last updated230MIT
Related MCP Connectors
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
MCP server exposing the Backtest360 engine API as tools for AI agents.
A basic MCP server to operate on the Postman API.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ygdcz/simple-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server