Skip to Content
HomeHosted Tools Quickstart

Arcade’s Hosted Tools Quickstart

Arcade gives your AI the power to act. With Arcade’s Hosted , your AI can send Gmail, update Notion, message in Slack, and more.

Outcomes

Build and run an Server with that you define.

You will Learn

  • Install the
  • Authenticate your first real-world
  • Run your first tool call using the

Install the Arcade client

In your terminal, run the following command to install the arcade-mcp package:

Terminal
uv pip install arcadepy

Instantiate and use the client

Create a new script called example.py:

Python
example.py
from arcadepy import Arcade # You can also set the `ARCADE_API_KEY` environment variable instead of passing it as a parameter. client = Arcade(api_key="{arcade_api_key}") # Arcade needs a unique identifier for your application user (this could be an email address, a UUID, etc). # In this example, use the email you used to sign up for Arcade.dev: user_id = "{arcade_user_id}" # Let's use the `Math.Sqrt` tool from the Arcade Math MCP Server to get the square root of a number. response = client.tools.execute( tool_name="Math.Sqrt", input={"a": '625'}, user_id=user_id, ) print(f"The square root of 625 is {response.output.value}") # Now, let's use a tool that requires authentication to star a GitHub repository auth_response = client.tools.authorize( tool_name="GitHub.SetStarred", user_id=user_id, ) if auth_response.status != "completed": print(f"Click this link to authorize: `{auth_response.url}`. The process will continue once you have authorized the app." ) # Wait for the user to authorize the app client.auth.wait_for_completion(auth_response.id); response = client.tools.execute( tool_name="GitHub.SetStarred", input={ "owner": "ArcadeAI", "name": "arcade-ai", "starred": True, }, user_id=user_id, ) print(response.output.value)

Run the code

Terminal
python3 example.py > The square root of 625 is 25 > Successfully starred the repository ArcadeAI/arcade-ai </Tabs.Tab> <Tabs.Tab> ```bash node example.mjs > The square root of 625 is 25 > Successfully starred the repository ArcadeAI/arcade-ai

Next Steps

In this simple example, we call the tool methods directly. In your real applications and , you’ll likely be letting the LLM decide which to call - lean more about using Arcade with Frameworks in the Frameworks section, or how to build your own tools.

Last updated on