Demo FastMCP Server

Demo FastMCP Server

A demo MCP server for experimenting with tools, resources, prompts, and lifespan in FastMCP.

Category
Visit Server

README

Demo FastMCP Server

로컬에서 FastMCP 서버 구조(tools / resources / prompts / lifespan)를 실험하기 위한 더미 프로젝트입니다.

툴만 추가하려면 → docs/ADD_TOOL.md

구조

src/demo_mcp/
├── server.py          # FastMCP 인스턴스 + lifespan + 등록 진입점
├── config.py          # 설정/시드 데이터
├── tools/             # @mcp.tool
│   ├── echo.py
│   ├── calculator.py
│   └── notes.py       # lifespan context 예시
├── resources/         # @mcp.resource
│   ├── config.py
│   └── notes.py
└── prompts/           # @mcp.prompt
    └── assistant.py
tests/
└── test_server.py     # Client(mcp) 인메모리 테스트

설치

uv sync --extra dev

테스트

uv run pytest -q

인메모리 Client(mcp)로 transport 없이 tools/resources/prompts를 검증합니다.

서버 실행

HTTP (기본):

uv run demo-mcp

서버 URL: http://127.0.0.1:8000/mcp

환경변수로 바꿀 수 있습니다.

변수 기본값 설명
DEMO_MCP_TRANSPORT http http 또는 stdio
DEMO_MCP_HOST 127.0.0.1 바인드 호스트
DEMO_MCP_PORT 8000 포트
DEMO_MCP_PATH /mcp MCP 엔드포인트 경로

stdio:

DEMO_MCP_TRANSPORT=stdio uv run demo-mcp

Cursor MCP 연결 예시

HTTP (서버를 먼저 uv run demo-mcp로 실행한 뒤):

{
  "mcpServers": {
    "demo-mcp": {
      "url": "http://127.0.0.1:8000/mcp"
    }
  }
}

이미 .cursor/mcp.json에 위 설정이 들어 있습니다.

포함된 더미 기능

종류 이름 설명
tool echo, greet 단순 문자열
tool add, calculate 사칙연산
tool save_note, get_note, list_notes lifespan store
resource config://app 서비스 메타
resource notes://{key} 시드 노트
prompt summarize, code_review 프롬프트 템플릿

mcp

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured