> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Server

> Start an example MCP server that uses the SSE transport.

```python server.py theme={null}
"""Start an example MCP server that uses the SSE transport."""

from mcp.server.fastmcp import FastMCP

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------


mcp = FastMCP("calendar_assistant")


@mcp.tool()
def get_events(day: str) -> str:
    return f"There are no events scheduled for {day}."


@mcp.tool()
def get_birthdays_this_week() -> str:
    return "It is your mom's birthday tomorrow"


# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------

if __name__ == "__main__":
    mcp.run(transport="sse")
```

## Run the Example

<Snippet file="create-venv-step.mdx" />

**1. Install dependencies**

```bash theme={null}
uv pip install -U mcp
```

**2. Run the example**

Save the code above as `server.py`, then run:

```bash theme={null}
python server.py
```

Full source: [cookbook/91\_tools/mcp/sse\_transport/server.py](https://github.com/agno-agi/agno/blob/v3.0.4/cookbook/91_tools/mcp/sse_transport/server.py)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.