Skip to main content
Glama

Slim-MCP:Claude Tools 🤖

🚀 通过 MCP 协议为 Claude 提供强大的基于 Python 的工具

✨ 特点

  • 🧮计算器:执行复杂的数学计算
  • 🌦️天气:获取当前天气预报和警报
  • 🕒 DateTime :以本地和 UTC 格式访问当前时间
  • 🔌可扩展:使用简单的 Python 函数轻松添加自定义工具
  • 💻桌面集成:与 Claude 桌面应用程序无缝集成
  • 🖱️ Cursor IDE :为开发人员提供与 Cursor IDE 的原生集成

📋 目录

🚀 安装

先决条件

  • Python 3.11+
  • Conda(推荐)

使用 Conda 设置(推荐)

# Create conda environment with Python 3.11 conda create -n mcp-tools python=3.11 # Activate environment conda activate mcp-tools # Clone the repository git clone https://github.com/webdevtodayjason/slim-MCP.git cd slim-MCP # Install with uv (preferred) uv pip install -e . # OR install with standard pip pip install -e .

🎮 使用方法

配置 Claude

将其添加到您的 Claude 配置文件中:

{ "mcpServers": { "claude-tools": { "command": "/path/to/conda/envs/mcp-tools/bin/python", "args": ["-m", "claude_tools.main"] } } }

配置 Cursor IDE

NAME: claude-tools TYPE: command COMMAND: /path/to/conda/envs/mcp-tools/bin/python -m claude_tools.main

示例提示

Can you calculate 25^3 + sqrt(196)? What's the current time in UTC? What's the weather like in Austin, TX?

🔌 集成

  • Claude AI Desktop :通过 MCP 协议进行初步集成
  • Cursor IDE :直接集成开发工作流程
  • Claude Web :通过配置兼容 Claude Web

💻 开发

项目结构

slim-MCP/ ├── src/ │ └── claude_tools/ │ ├── __init__.py │ ├── calculator.py # Math calculation tool │ ├── datetime_tool.py # Date and time utilities │ ├── main.py # Entry point │ └── weather.py # Weather forecasting tool ├── http_server.py # HTTP server for MCP ├── pyproject.toml # Project configuration ├── .gitignore # Git ignore file └── LICENSE # MIT License

创建新工具

  1. src/claude_tools/中创建一个新的 Python 文件:
# src/claude_tools/my_tool.py def my_awesome_function(param: str) -> str: """Description of what this tool does. Args: param: Description of the parameter Returns: A string with the result """ result = f"Processed: {param}" return result def register_my_tools(mcp): """Register all my tools with the MCP server.""" mcp.tool()(my_awesome_function)
  1. __init__.py中导入并注册您的工具:
# In src/claude_tools/__init__.py from .calculator import register_calculator_tools from .datetime_tool import register_datetime_tools from .weather import register_weather_tools from .my_tool import register_my_tools # Add this line def register_all_tools(mcp): register_calculator_tools(mcp) register_datetime_tools(mcp) register_weather_tools(mcp) register_my_tools(mcp) # Add this line
  1. 重新启动服务器,您的新工具就可以使用了!

👥 贡献

欢迎贡献代码!欢迎提交 Pull 请求。

  1. 分叉存储库
  2. 创建你的功能分支( git checkout -b feature/amazing-feature
  3. 提交您的更改( git commit -m 'Add some amazing feature'
  4. 推送到分支( git push origin feature/amazing-feature
  5. 打开拉取请求

📄 许可证

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。


Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

一种轻量级、模块化 API 服务,通过 RESTful 界面提供天气、日期/时间、计算器、搜索、电子邮件和任务管理等有用的工具,旨在与 AI 代理和自动化工作流程集成。

  1. ✨ 特点
    1. 📋 目录
      1. 🚀 安装
        1. 先决条件
        2. 使用 Conda 设置(推荐)
      2. 🎮 使用方法
        1. 配置 Claude
        2. 配置 Cursor IDE
        3. 示例提示
      3. 🔌 集成
        1. 💻 开发
          1. 项目结构
          2. 创建新工具
        2. 👥 贡献
          1. 📄 许可证

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              A modular, extensible FastAPI-based platform that aggregates multiple AI tools and microservices into a unified interface with standardized I/O formats, perfect for frontend integration or LLM system orchestration.
              Last updated -
              2
              Python
              MIT License
            • -
              security
              F
              license
              -
              quality
              A powerful interface for extending AI capabilities through remote control, calculations, email operations, knowledge search, and more.
              Last updated -
              34
              Python
            • -
              security
              F
              license
              -
              quality
              A standardized API server that enables AI agents and client applications to fetch current weather information for any location without directly interacting with external weather APIs.
              Last updated -
              Python
              • Apple
              • Linux
            • -
              security
              A
              license
              -
              quality
              Provides integration with Apache Airflow's REST API, allowing AI assistants to programmatically interact with Airflow workflows, monitor DAG runs, and manage tasks.
              Last updated -
              JavaScript
              MIT License

            View all related MCP servers

            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/webdevtodayjason/slim-MCP'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server