mcpbeat Sign in

Python on Vercel Agent Skill

1k tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
9
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/vercel-labs/academy-skills --skill Python on Vercel

The instruction itself

15 sections, as written by the author

Python on Vercel

Companion skill for the Python on Vercel course. Ship a FastAPI backend and a Next.js 16 frontend as a single Vercel project, on the hobby plan, under one domain.

Commands

/python-on-vercel learn

Start the guided learning loop. Six lessons across three sections: setup, connecting the apps, and deploying to Vercel.

/python-on-vercel new

Scaffold a Python + Next.js project on Vercel:

  • Clone the starter repo (vercel-labs/python-on-vercel-academy)
  • Install Node deps with npm install and Python deps via pyproject.toml
  • Install and authenticate the Vercel CLI (vercel login)
  • Run both apps together with vercel dev
  • Verify / renders mock data and /api/items returns JSON

/python-on-vercel submit

Evaluate the current implementation against the active lesson's outcomes.

Content source

https://vercel.com/academy/python-on-vercel.md           → course overview
https://vercel.com/academy/python-on-vercel/<lesson>.md   → lesson content

Core concepts

One project, two runtimes

  • Next.js 16 at the project root (app/, package.json, next.config.ts)
  • FastAPI in api/index.py with app = FastAPI() at module level
  • Python deps in pyproject.toml at the root (no requirements.txt)
  • No vercel.json — Vercel auto-detects Next.js at the root and Python in api/

Local development with vercel dev

  • One command serves both apps under http://localhost:3000
  • Same-origin requests mean no CORS configuration
  • Mirrors the production routing exactly

Routing into FastAPI

  • Vercel routes /api/* to api/index.py
  • FastAPI route patterns must include the /api prefix (e.g., @app.get("/api/items"))
  • Routes at just / or /items will not match

Server-side fetch from Next.js

  • Server components need an absolute URL — fetch("/api/items") only works in the browser
  • Build the base URL from process.env.VERCEL_URL (auto-injected on every deployment)
  • VERCEL_URL is hostname-only — prepend https:// and fall back to http://localhost:3000 for local dev

Deploy

  • vercel deploy --prod ships both halves under one domain
  • Hobby plan is sufficient for the entire course

Progress detection

| Signal | Lesson area |

|---|---|

| Vercel CLI not installed or not authenticated | Setup (1.1) |

| api/index.py runs locally with fastapi dev | FastAPI tour (1.2) |

| app/page.tsx shows mock furniture data in the browser | Next.js tour (1.3) |

| vercel dev serves both apps on localhost:3000 | Connect (2.1) |

| app/page.tsx is async function Home() and calls /api/items | Wired (2.2) |

| Asks about deploy verification or production URLs | Deploy (3.1) |

Common fixes

  • 404 on /api/items — route in api/index.py is missing the /api prefix. Check for @app.get("/api/items"), not @app.get("/items").
  • Server fetch fails in Next.js — relative URL from a server component. Build an absolute URL from process.env.VERCEL_URL with a localhost fallback.
  • Deploy fails with app not found — the FastAPI variable must be named app at module level. Vercel looks for app at supported entrypoints (app.py, index.py, server.py, plus src/ and app/ variants). Renaming it to api, server, or application breaks deploy detection.
  • fastapi import error — Python deps missing from pyproject.toml, or wrong Python version. Pin requires-python = ">=3.12".
  • vercel dev does not expose /api/* — confirm the command is run from the project root and Python files live in api/.

Teaching guidelines

  • Six lessons total, target a 60-minute end-to-end run
  • Course is hobby-plan compatible — do not introduce Services or other Pro/Enterprise features into the core flow
  • Do not require vercel.json — the project structure is the config
  • Keep examples tied to the Hazel Home furniture theme
  • Flask and Django are mentioned only as a one-paragraph aside in the deploy lesson

Other skills for the same job

different authors, same section of the catalogue
MCP Builder
by anthropics
vendor ×13

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

30k tokens scripts
Changelog Generator
by frostant
×9

Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

774 tokens
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
MCP Builder
by JayZeeDesign
×7

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

37k tokens scripts
Vercel React Best Practices
by ratacat
×5

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

34k tokens
Using Git Worktrees
by ZhanlinCui
×4

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

1k tokens
Pylabrobot
by christophacham
×4

Vendor-agnostic lab automation framework. Use when controlling multiple equipment types (Hamilton, Tecan, Opentrons, plate readers, pumps) or needing unified programming across different vendors. Best for complex workflows, multi-vendor setups, simulation. For Opentrons-only protocols with official API, opentrons-integration may be simpler.

21k tokens
Scikit Survival
by ComeOnOliver
×4

Comprehensive toolkit for survival analysis and time-to-event modeling in Python using scikit-survival. Use this skill when working with censored survival data, performing time-to-event analysis, fitting Cox models, Random Survival Forests, Gradient Boosting models, or Survival SVMs, evaluating survival predictions with concordance index or Brier score, handling competing risks, or implementing any survival analysis workflow with the scikit-survival library.

22k tokens

How to use it

Copy the folder

Take vercel-labs/python on vercel from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference npm. Without those the skill loads but fails at the first command.