Skip to main content
Glama
Scarmonit

My MCP Server

by Scarmonit
README.md
# My MCP Server

FastMCP server with FastAPI for Claude.ai integration.

## Features

- **Tool**: `add(a, b)` - Adds two integers
- **Resource**: `greeting://{name}` - Personalized greeting
- **Prompt**: `stock_analyst_prompt` - Stock market analyst persona

## Deployment

### Render (Free Tier)

1. Connect this repo to [Render](https://render.com)
2. It will auto-detect the `render.yaml` and deploy on the free tier
3. Your MCP endpoint will be: `https://<your-app>.onrender.com/mcp`

### Local Development

```bash
# Install dependencies
uv sync

# Run HTTP server
uv run main.py
# Server available at http://localhost:8000/mcp

# Or run via stdio (for Claude Desktop)
uv run server.py
```

## Connecting to Claude

### Claude.ai (Web)

1. Deploy to Render (see above)
2. Go to Claude.ai > Settings > Integrations > Add Custom Connector
3. Enter your Render URL: `https://<your-app>.onrender.com/mcp`

### Claude Desktop

Add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "my-mcp-server": {
      "command": "uv",
      "args": ["run", "server.py"],
      "cwd": "/path/to/my-mcp-server"
    }
  }
}
```