my-mcp-server
Allows generating images using Hugging Face Inference API with the FLUX.1-schnell model.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@my-mcp-serverwhat's the weather in Berlin?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
my-mcp-server
Next.js + mcp-handler 기반 Streamable HTTP MCP 서버입니다. Vercel에 배포할 수 있습니다.
구조
app/
api/[transport]/route.ts # HTTP MCP 엔드포인트 (/api/mcp)
page.tsx
layout.tsx
lib/mcp/
server.ts # 도구·프롬프트·리소스 등록
helpers.ts
request-context.ts # x-hf-token 요청 컨텍스트Related MCP server: Multi-Purpose MCP Server
로컬 실행
npm install
npm run devMCP 엔드포인트: http://localhost:3000/api/mcp
MCP Inspector로 테스트
npx @modelcontextprotocol/inspectorTransport: Streamable HTTP
URL:
http://localhost:3000/api/mcp
Cursor 연결
로컬:
{
"mcpServers": {
"my-mcp-server": {
"url": "http://localhost:3000/api/mcp",
"headers": {
"x-hf-token": "hf_your_token_here"
}
}
}
}Vercel 배포 후:
{
"mcpServers": {
"my-mcp-server": {
"url": "https://YOUR_PROJECT.vercel.app/api/mcp",
"headers": {
"x-hf-token": "hf_your_token_here"
}
}
}
}HF 토큰 (x-hf-token)
generate-image 도구는 Hugging Face Inference API를 사용합니다. 토큰 우선순위:
요청 커스텀 헤더
x-hf-token(클라이언트별 입력)서버 환경변수
HF_TOKEN(선택적 폴백)
클라이언트에서 헤더로 넘기면 서버에 토큰을 고정 저장하지 않아도 됩니다.
Vercel 배포
npx vercel또는 GitHub 연동 후 Vercel 대시보드에서 Import.
선택적으로 서버 공통 폴백 토큰을 쓰려면 Vercel 프로젝트에 HF_TOKEN을 설정하세요.
참고:
제공 기능
종류 | 이름 | 설명 |
Tool |
| 인사말 |
Tool |
| 사칙연산 |
Tool |
| 타임존 현재 시간 |
Tool |
| 도시 → 좌표 |
Tool |
| 날씨/예보 |
Tool |
| FLUX.1-schnell 이미지 생성 |
Resource |
| 서버 정보 |
Prompt |
| 코드 리뷰 프롬프트 |
스크립트
npm run dev— 로컬 개발 서버npm run build— 프로덕션 빌드npm start— 프로덕션 서버
라이선스
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Deploy a GitHub repo to a live HTTPS URL from your AI tool; read logs, set variables, resize apps.
16 AI-native tools with dual SSE + streamable-http transport. Free tier available.
The agent-native cloud: database, functions, AI, storage, computers. 50 tools, one API key.
Deploy full-stack apps (Postgres, Redis, S3, workers, backups) from Claude or curl. 59 MCP tools.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides weather information and web search capabilities with special support for Hugging Face inference providers. Integrates seamlessly with tiny-agents framework for conversational AI interactions.1-
- FlicenseBqualityDmaintenanceProvides various utilities including timezone-aware time queries, basic calculator operations, multilingual greetings, code review prompts, and AI image generation through Hugging Face API.5-
- FlicenseNot gradedqualityCmaintenanceProvides tools for greeting, calculation, time lookup, geocoding, weather, and image generation via HuggingFace, with streamable HTTP and stdio support, deployable on Vercel.-
- FlicenseNot gradedqualityCmaintenanceA TypeScript MCP server boilerplate that provides tools like calculator, weather, geocoding, and image generation via HuggingFace, supporting both Streamable HTTP (for Vercel deployment) and stdio transports.-