Back to MCP directory
publicPublicdnsLocal runtime

whoami-mcp

一个轻量级的MCP服务器,用于返回当前系统用户名作为用户身份标识。

article

README

🚀 WhoAmI MCP 服务器

WhoAmI MCP 服务器是一个轻量级的服务器,它能精准地告知你“你是谁”,为你明确身份信息。

GitHub 许可证 GitHub 最后提交 Python 版本

🚀 快速开始

WhoAmI MCP 服务器能快速返回当前系统用户的用户名,以此明确你的身份,且能快速同步执行,很适合本地 LLM 集成。

✨ 主要特性

  • 返回当前系统用户的用户名,作为你的名字,明确你的身份。
  • 快速且同步执行,适合本地 LLM 集成。

📦 安装指南

克隆仓库

git clone https://github.com/kukapay/whoami-mcp.git

客户端配置

{
  "mcpServers": {
    "whoami": {
      "command": "uv",
      "args": ["--directory", "path/to/whoami_mcp", "run", "main.py"]
    }
  }
}

💻 使用示例

MCP 工具

  • 名称whoami
  • 描述:获取当前系统用户的用户名作为你的名字。
  • 输出:你的名字。

📄 许可证

该项目使用 MIT License 许可证。有关详细信息,请参阅 LICENSE 文件。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client