loading…
Search for a command to run...
loading…
Provides demo tools for addition, mock weather data, and username generation.
Provides demo tools for addition, mock weather data, and username generation.
MCP Server for querying compensation data from levels.fyi.
Server name: MyPlayground
Tools:
calculate_addition(a: int, b: int) -> intget_mock_weather(city: str) -> str (mock weather, not real API data)generate_username(base_name: str, add_numbers: bool = true) -> strThis section is for users who only want to install and run the MCP server in Cursor.
>=3.11Use uv run so Cursor uses the project environment directly.
{
"mcpServers": {
"user-MyPlayground": {
"command": "uv",
"args": ["run", "python", "main.py"],
"cwd": "/absolute/path/to/levels-fyi-mcp"
}
}
}
cwd points to your local clone of this repo.calculate_addition, get_mock_weather, and generate_username.fastmcp commandIf you prefer command: "fastmcp" in Cursor, install it as a global tool:
uv tool install fastmcp
If Cursor cannot find fastmcp, use the recommended uv run config above.
This section is for contributors working on code changes.
From the project root:
uv sync
uv run python main.py
uv add <package>
uv sync
uv run python -c "import fastmcp; print('fastmcp ok')"
.
├── main.py
├── pyproject.toml
└── README.md
Cause: Cursor cannot find the fastmcp executable.
Fix:
uv run python main.py, oruv tool install fastmcp and ensure PATH includes the uv tool bin (commonly ~/.local/bin).generate_username.add_numbers must be boolean (true/false), not numbers or strings.get_mock_weather returns randomized mock data for demos.main.py and appear in server output.Add this to claude_desktop_config.json and restart Claude Desktop.
{
"mcpServers": {
"myplayground": {
"command": "npx",
"args": []
}
}
}