Skip to content

Connect the MultitaskAI MCP server to Microsoft Agent Framework

Microsoft Agent Framework builds agents in Python and .NET. Add MultitaskAI to a Python agent as an MCPStreamableHTTPTool with your API key.

Endpoint

Text
https://mcp.multitaskai.com

Steps

  1. Create an API key in your MultitaskAI account.
  2. On a minimal install, add MCP support with pip install "mcp>=2.2.0,<3".
  3. Add the tool below to your agent, with your key in place of YOUR_API_KEY.
  4. Run the agent and ask which tools are available to it.
Python
from agent_framework import Agent, MCPStreamableHTTPTool
from agent_framework.openai import OpenAIChatClient

async with Agent(
    client=OpenAIChatClient(),
    name="Agent",
    instructions="You are a helpful assistant.",
    tools=MCPStreamableHTTPTool(
        name="multitaskai",
        url="https://mcp.multitaskai.com",
        static_headers={"Authorization": "Bearer YOUR_API_KEY"},
    ),
) as agent:
    result = await agent.run("What tools are available to you?")

Authentication

Microsoft Agent Framework sends your MultitaskAI API key in the Authorization header. Create a key in your account and use it in place of YOUR_API_KEY. Keep the key out of files you share or commit.

Text
Authorization: Bearer YOUR_API_KEY

Good to know

  • On a minimal install, add MCP support with pip install "mcp>=2.2.0,<3".
  • Use static_headers for a fixed key, or header_provider to supply the Authorization header for each run.
  • The .NET version uses the official MCP C# SDK instead.

Official documentation

The Microsoft MCP documentation covers Microsoft Agent Framework's own settings in detail. See the overview for the endpoint and authentication, and pricing for the daily free requests.