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 # 直接打印主机信息 JSONAvailable Tools
1 toolget_host_infoA
获取本机硬件与操作系统信息。
返回 system(系统名)、release(内核版本)、machine(架构)、 processor(处理器标识)、memory_gb(总内存 GB)、 cpu_count(逻辑核心数)、cpu_model(CPU 型号)。
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| system | Yes | 操作系统名称,如 Darwin / Linux / Windows |
| machine | Yes | CPU 架构,如 x86_64 / arm64 |
| release | Yes | 内核版本号 |
| cpu_count | Yes | 逻辑核心数,无法探测时为 -1 |
| cpu_model | Yes | CPU 型号名称,无法探测时为 Unknown |
| memory_gb | Yes | 物理内存总量,单位 GB |
| processor | Yes | 处理器标识,部分平台可能为空 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the burden. It lists what fields are returned, but does not disclose potential side effects (none expected), authentication requirements, or performance implications. The description is adequate for a read-only info tool but lacks depth.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is brief (two lines plus a bullet list) and well-structured. Every sentence adds value. It could be slightly more concise, but overall efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has no parameters, an output schema exists (per context), and no siblings, the description covers all necessary information: purpose and return fields. It is complete for a simple info retrieval tool, though it omits example output or error conditions.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There are zero parameters, so the input schema provides no information. The description compensates by explicitly listing the returned fields (system, release, machine, etc.) with their meanings, adding value beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves local host hardware and OS information, listing specific fields. The verb 'get' combined with 'host info' is specific and unambiguous. No sibling tools exist, so differentiation is not required.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool vs alternatives or any exclusions. However, the tool is simple with no siblings, so the lack of explicit guidelines is acceptable but minimal.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.1.0- First observed
get_host_info
TDQS
With only one tool, there is no possibility of confusion with other tools. The tool's purpose is clearly defined.
The single tool follows a clear verb_noun pattern (get_host_info), which is consistent and descriptive.
One tool is on the low end, but given the server's name 'simple-MCP', it is reasonable for a focused purpose. However, it is borderline for general utility.
The tool returns comprehensive host hardware and OS information (system, kernel, architecture, processor, memory, CPU), covering the domain well with no obvious gaps.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that publishes CLI tools on your machine for discoverability by LLMs141MIT
- FlicenseAqualityDmaintenanceA simple local MCP server that provides greeting and integer addition tools.2-
- FlicenseAqualityDmaintenanceLightweight MCP server that exposes tools for system information and weather lookup, designed for agent integration via stdio.1-
- AlicenseAqualityCmaintenanceA minimal MCP server that provides a single 'hello' tool returning 'Hello, world!'.216MIT
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