Skip to main content

Install

pip install dedalus-mcp dedalus-labs

API Key

Claim your API key from the dashboard and set it:
export DEDALUS_API_KEY="your-api-key"

Create a server

# 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:
python server.py
Server starts on http://127.0.0.1:8000/mcp.

Test with a client

# 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.

Deploy Guide

Step-by-step deployment walkthrough with screenshots.

Next Steps

Authentication

Most secure MCP auth framework in the industry.

Examples

Examples for production servers (e.g., GitHub and Supabase).
Last modified on March 10, 2026