> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dedaluslabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Build and deploy an MCP server in 5 minutes.

## Install

<CodeGroup>
  ```bash pip theme={"theme":{"light":"github-light","dark":"github-dark"}}
  pip install dedalus-mcp dedalus-labs
  ```

  ```bash uv theme={"theme":{"light":"github-light","dark":"github-dark"}}
  uv add dedalus-mcp dedalus-labs
  ```
</CodeGroup>

## API Key

Claim your API key from the [dashboard](https://dedaluslabs.ai/dashboard/api-keys) and set it:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
export DEDALUS_API_KEY="your-api-key"
```

## Create a server

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
# server.py
from dedalus_mcp import MCPServer, tool

@tool(description="Add two numbers")
def add(a: int, b: int) -> int:
    return a + b

@tool(description="Multiply two numbers")
def multiply(a: int, b: int) -> int:
    return a * b

server = MCPServer("calculator")
server.collect(add, multiply)

if __name__ == "__main__":
    import asyncio
    asyncio.run(server.serve())
```

Run it:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
python server.py
```

Server starts on `http://127.0.0.1:8000/mcp`.

## Test with a client

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
# client.py
from dedalus_mcp.client import MCPClient
import asyncio

async def main():
    client = await MCPClient.connect("http://127.0.0.1:8000/mcp")

    # List available tools
    tools = await client.list_tools()
    print([t.name for t in tools.tools])  # ['add', 'multiply']

    # Call a tool
    result = await client.call_tool("add", {"a": 2, "b": 3})
    print(result.content[0].text)  # "5"

    await client.close()

asyncio.run(main())
```

## Deploy

Ready to host your server remotely? Deploy to the Dedalus platform to access it from anywhere, share with others, or monetize your work.

<Card title="Deploy Guide" icon="cloud-arrow-up" href="/sdk/mcp/python/deploy">
  Step-by-step deployment walkthrough with screenshots.
</Card>

## Next Steps

<CardGroup cols={2}>
  <Card title="Authentication" icon="shield-halved" href="/sdk/mcp/python/authorization">
    Most secure MCP auth framework in the industry.
  </Card>

  <Card title="Examples" icon="code" href="/sdk/mcp/python/examples">
    Examples for production servers (e.g., GitHub and Supabase).
  </Card>
</CardGroup>
