MCP docs › Quickstart › Python
Connect Python
Two minutes: mint a token, paste the config, list the tools.
1. Get a token
Open your dashboard → MCP / Agents and create a scoped cfm- token, ticking only the tools this agent should reach. Your account sk- key works too, but a scoped token is safer and can be revoked on its own.
2. Configure Python
# pip install mcp
import asyncio
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
HEADERS = {"Authorization": "Bearer YOUR_TOKEN"}
async def main():
async with streamablehttp_client("https://convertfleet.online/mcp", headers=HEADERS) as (read, write, _):
async with ClientSession(read, write) as s:
await s.initialize()
print([t.name for t in (await s.list_tools()).tools])
res = await s.call_tool("google_search", {"query": "mcp servers", "max_results": 5})
print(res.structuredContent)
asyncio.run(main())
3. Verify
Ask the agent to list its ConvertFleet tools, or have it call account_status — it reports the plan, this month's usage and exactly which tools the token allows.
Tell the agent what it has. The server sends usage instructions on connect, so a well-behaved client already knows the catalog. If yours ignores them, have it call
convertfleet_guide once at the start of a session.