Sandbox
@ArcadeAI/arcade-mcp

MCP server framework and tool library for agents

Arcade MCP gives you the pieces to build MCP servers with Python: tool decorators, auth helpers, CLI commands, and examples. It works with MCP clients over stdio or HTTP, and the framework can handle OAuth token flow, secret injection, and tool-call testing.

1,022 stars112 forksPythonUpdated 7d ago
Who it's for

Builders who want to wrap custom APIs, internal services, or domain tools for Claude, Cursor, and other MCP clients.

What it delivers

You can build and ship custom MCP tools without wiring every protocol, auth, and deployment detail yourself.

What it does

Decorator-based MCP app

Define tools, resources, prompts, sampling, elicitation, progress, and logging with Python decorators.

Authorized tool calling

Declare OAuth or secret requirements on a tool, and the framework handles authorization, token refresh, and scoped injection at runtime.

Vendor-neutral runtime

Run the same server with any MCP client, LLM, or agent framework that speaks MCP.

CLI scaffolding and run commands

Create a starter server with `arcade new`, run it locally, and configure clients from the same CLI.

Evaluation tooling

Use `arcade evals` to test tool-call accuracy against real models.

Cloud deployment path

Use `arcade deploy` to package and host a server on Arcade Cloud.

How to get it

  1. 1Run
    uv tool install arcade-mcp
  2. 2Run
    arcade new my_server
    cd my_server/src/my_server
  3. 3Run
    uv run server.py             # stdio (default), for Claude Desktop and CLI tools
    uv run server.py http        # HTTP+SSE, for Cursor and VS Code; docs at http://127.0.0.1:8000/docs
  4. 4Run
    arcade configure claude                                 # Claude Desktop, stdio
    arcade configure cursor --transport http --port 8080    # Cursor, local HTTP on :8080
    arcade configure vscode --entrypoint my_server.py       # VS Code, stdio launching my_server.py
  5. 5Requires Python 3.10+ and uv.
    git clone https://github.com/ArcadeAI/arcade-mcp.git
    cd arcade-mcp
    make install

README

Arcade

License CI PyPI Python Version

Arcade MCP

Open-source Python framework for building MCP servers and tools.

DocumentationExamplesDiscord

What is arcade-mcp

arcade-mcp is the Python framework for building Model Context Protocol servers and the tools that run inside them. It powers the 7,500+ prebuilt tools across 81 MCP servers at Arcade.dev, and is open-sourced so you can build your own.

Use it when you need MCP tools that aren't already in the prebuilt catalog: internal APIs, custom OAuth providers, domain-specific integrations.

Highlights:

  • Decorator API covering the full MCP spec: tools, resources, prompts, sampling, elicitation, progress, logging.
  • Authorized tool calling. Declare requires_auth=GitHub(scopes=["repo"]) and Arcade handles OAuth, token refresh, and per-call scoping. The client and the LLM never see the token.
  • Vendor-neutral. Any MCP client, any LLM, any agent framework (LangChain, Mastra, Pydantic AI, CrewAI, Google ADK, OpenAI Agents).
  • arcade evals for testing tool-call accuracy against real LLMs.
  • arcade deploy for one-command hosting on Arcade Cloud.

Authorized tool calling

Tools can declare:

  1. Which OAuth scopes they need, and Arcade handles the rest: prompting the end user to authorize, storing and refreshing tokens, scoping them per call
  2. API keys or any other secrets, and Arcade hosts the secrets securely in an encrypted environment.

The secrets (OAuth tokens, API keys, etc) are securely injected by Arcade into your tool call at runtime, so that your tool can authorize requests to upstream APIs, for example. The client and the LLM never see the secret values.

A tool that reads the user's GitHub repos is one decorator away:

from arcade_mcp_server import MCPApp, Context
from arcade_mcp_server.auth import GitHub

app = MCPApp(name="gh", version="1.0.0")

@app.tool(requires_auth=GitHub(scopes=["repo"]))
async def list_my_repos(context: Context) -> list[str]:
    """List the authenticated user's GitHub repositories."""
    token = context.get_auth_token_or_empty()
    ...

When the tool is invoked through Arcade Cloud, the user is presented with a URL to complete the OAuth challenge in their browser. On success, the token is injected into context for that call. Subsequent calls reuse and refresh the token automatically.

22 helper classes ship with the framework for popular providers:

Asana, Atlassian, Attio, ClickUp, Discord, Dropbox, Figma, GitHub, Google, Hubspot, Linear, LinkedIn, Microsoft, Notion, PagerDuty, Reddit, Slack, Spotify, Twitch, X, Zoom.

For any other OAuth API, use the generic OAuth2(...) class and register your OAuth app in the Arcade Dashboard.

Quick Start

Install the CLI

uv tool install arcade-mcp

Scaffold a new server

arcade new my_server
cd my_server/src/my_server

The scaffold creates pyproject.toml, .env.example, and a server.py with example tools.

A minimal tool:

from typing import Annotated
from arcade_mcp_server import MCPApp

app = MCPApp(name="my_server", version="1.0.0")

@app.tool
def greet(name: Annotated[str, "Name to greet"]) -> str:
    """Greet a person by name."""
    return f"Hello, {name}!"

if __name__ == "__main__":
    app.run(transport="stdio")

Run

uv run server.py             # stdio (default), for Claude Desktop and CLI tools
uv run server.py http        # HTTP+SSE, for Cursor and VS Code; docs at http://127.0.0.1:8000/docs

Configure your MCP client

arcade configure claude                                 # Claude Desktop, stdio
arcade configure cursor --transport http --port 8080    # Cursor, local HTTP on :8080
arcade configure vscode --entrypoint my_server.py       # VS Code, stdio launching my_server.py

For more patterns (MCP resources, sampling, progress reporting, tool chaining, end-to-end agents, eval suites, Resource Server Auth), browse examples/mcp_servers/. Run arcade --help for the full CLI.

With Arcade Cloud

arcade login followed by arcade deploy packages your server, discovers and upserts required secrets, and polls until it's healthy on Arcade Cloud. From there, the Arcade Engine fulfills authorized tool calling flows for end users, and arcade server logs/list/status plus arcade dashboard provide observability and management.

Standalone is supported too. Run your server in any MCP client over stdio or HTTP. Supply your own access tokens for tools with requires_auth=..., and protect production HTTP endpoints with Resource Server Auth (OAuth 2.1 Bearer tokens validated against your IdP).

Install from Source

Requires Python 3.10+ and uv.

git clone https://github.com/ArcadeAI/arcade-mcp.git
cd arcade-mcp
make install

See CONTRIBUTING.md for development workflow and SECURITY.md for vulnerability reporting.

Community

License

MIT. See LICENSE.

Files in the repo

Repository payload24 top-level entries
  • .claude
  • .cursor
  • .github
  • .vscode
  • examples
  • libs
  • schemas
  • scripts
  • tests
  • .editorconfig
  • .gitignore
  • .pre-commit-config.yaml
  • .prettierignore
  • .prettierrc.toml
  • .ruff.toml
  • CLAUDE.md
  • CONTRIBUTING.md
  • cspell.config.yaml
  • LICENSE
  • Makefile
  • pyproject.toml
  • README.md
  • SECURITY.md
  • uv_setup.sh

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More frameworks & sdks

HKUDS/nanobotFrameworks & SDKs

Ultra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps

48k
microsoft/
SkillOpt
microsoft/SkillOptFrameworks & SDKs

SkillOpt is a text-space optimizer that trains reusable natural-language skills for frozen LLM agents through trajectory-driven edits, validation-gated updates, and deployable best_skill.md artifacts.

17k
omnigent-ai/omnigentFrameworks & SDKs

Omnigent is an open-source AI agent framework and meta-harness: orchestrate Claude Code, Codex, Cursor, Pi, and custom agents — swap harnesses without rewriting, enforce policies and sandboxing, and collaborate in real time from any device.

9.8k
kyegomez/
OpenMythos
kyegomez/OpenMythosFrameworks & SDKs

A theoretical reconstruction of the Claude Mythos architecture, built from first principles using the available research literature.

15k
D4Vinci/ScraplingFrameworks & SDKs

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

80k