About App Fastmcp Example
App Fastmcp Example is an MCP server in the Search category: a basic MCP app example with fastmcp Python backend.
Install
git clone https://github.com/vardior/mcp-app-fastmcp-exampleThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (4)
decrement-counterDecrement by amount
Parameters not published.
get-counterGet current value and display UI
Parameters not published.
increment-counterIncrement by amount
Parameters not published.
reset-counterReset to zero
Parameters not published.
Ask AI
Ask AI about App Fastmcp Example
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
MCP Demo Counter App
An interactive counter UI demonstrating MCP Apps SDK with Python/FastMCP and React.
Quick Start
npm install && uv sync
npm run build
uv run python server.py
For stdio transport: uv run python server.py --stdio
Tools
| Tool | Description |
|---|---|
get-counter |
Get current value and display UI |
increment-counter |
Increment by amount |
decrement-counter |
Decrement by amount |
reset-counter |
Reset to zero |
Project Structure
├── server.py
├── pyproject.toml
├── src/
│ ├── mcp-app.tsx
│ ├── mcp-app.module.css
│ └── global.css
├── mcp-app.html
├── dist/
├── vite.config.ts
└── package.json
How It Works
- Server registers MCP tools linked to a UI resource
- Host fetches the bundled HTML when a tool is called
- React app connects via
useApphook from@modelcontextprotocol/ext-apps - UI calls server tools via
app.callServerTool()
Development
npm run build # Static app page
uv run python server.py # MCP server
Port defaults to 3001. Override with PORT=8080 uv run python server.py.
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.