ferazzeid/mcp-server
3.2
If you are the rightful owner of mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This is a Model Context Protocol (MCP) server designed for building ChatGPT applications.
Tools
1
Resources
0
Prompts
0
MCP Server for ChatGPT Apps
Your first MCP (Model Context Protocol) server for building ChatGPT apps.
What's Installed
- @modelcontextprotocol/sdk - Official MCP TypeScript SDK
- TypeScript - For type-safe development
- Express - Web framework (ready for HTTP endpoints)
- Zod - Schema validation
Project Structure
src/
server.ts - Main MCP server with example tool & widget
dist/ - Compiled JavaScript (after build)
tsconfig.json - TypeScript configuration
Quick Start
1. Build the server
npm run build
2. Test locally (development mode)
npm run dev
3. Run compiled version
npm start
Example Tool
The server includes a show_greeting
tool that:
- Takes a name as input
- Returns a custom HTML widget with a greeting
- Demonstrates structured data passing to components
Next Steps
- Test with MCP Inspector: Install the MCP Inspector to test your server locally
- Add more tools: Extend
src/server.ts
with your own tools - Create custom widgets: Build React/Vue components and bundle them
- Deploy: Host on your VPS or a cloud platform
- Connect to ChatGPT: Add your server URL in ChatGPT settings
Documentation
Development Tips
- Use
npm run dev
for live development with ts-node - Test tools with MCP Inspector before deploying
- Keep widget HTML inline or bundle with webpack/vite
- Structure data in
structuredContent
for your widgets