Skip to main content
Glama
xiangshiyin

mcp-toy

by xiangshiyin

mcp-toy

Toy project to explore the MCP capability

MCP Servers

MCP servers can provide 3 main types of capabilities:

  • Resources - File-like data that can be read by clients

  • Tools - Functions that can be called by LLM

  • Prompts - Pre-written templates that can help users accomplish specific tasks

Claude desktop integration

Run mcp install server.py to load the MCP server to Claude, the corresponding config in ~/Library/Application\ Support/Claude/claude_desktop_config.json will be updated. Here is an example:

{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/Users/xiangshiyin/Documents/Coding/mcp-toy/server.py"
      ]
    }
  }
}

Development mode

Run uv run mcp dev server.py to inspect the MCP server

Related MCP server: Basic MCP Server

References

  • Official intro [link]

    • Test MCP server on Claude [link]

    • National weather service (NWS) API [doc]

  • MCP python SDK [link]

  • Stepwise tutorials

  • uv

    • About pyproject.toml [link]

    • Packing Python projects [link]

    • Official doc [link]

    • Add local dependency [link]

      • Using workspaces [link]

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/xiangshiyin/mcp-toy'

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