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

# Server

***

title: "Local Server Server"
description: "Tool integration example."
\---\~\~\~python
"""
`fastmcp` is required for this demo.

```bash theme={null}
uv pip install fastmcp
```

Run this with `fastmcp run cookbook/90_tools/mcp/local_server/server.py`
"""

from fastmcp import FastMCP

# ---------------------------------------------------------------------------

# Create Agent

# ---------------------------------------------------------------------------

mcp = FastMCP("weather\_tools")

@mcp.tool()
def get\_weather(city: str) -> str:
return f"The weather in {city} is sunny"

@mcp.tool()
def get\_temperature(city: str) -> str:
return f"The temperature in {city} is 70 degrees"

# ---------------------------------------------------------------------------

# Run Agent

# ---------------------------------------------------------------------------

if **name** == "**main**":
mcp.run(transport="stdio")

````

## Run the Example
```bash
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/91_tools/mcp/local_server

# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate

python server.py
```
````
