mcp-servers
This MCP server provides a modern web interface and a set of tools for interacting with the Facebook Marketing API, enabling campaign management, ad set operations, and insights retrieval. It supports multiple connection modes including STDIO, SSE, and HTTP.
README
Postman MCP Generator
Welcome to your enhanced MCP server! 🚀 This project was created with the Postman MCP Generator and enhanced with a modern web interface. It provides you with:
- ✅ An MCP-compatible server (
mcpServer.js) - ✅ Automatically generated JavaScript tools for each selected Postman API request
- ✅ NEW: Modern web-based frontend interface with real-time capabilities
- ✅ NEW: Server-Sent Events (SSE) and HTTP streaming support
- ✅ Multiple connection modes: STDIO, SSE, and HTTP
- ✅ NEW: Interactive tool execution with live results
- ✅ NEW: Session management and activity logging
Let's set things up!
🚦 Getting Started
⚙️ Prerequisites
Before starting, please ensure you have:
- Node.js (v18+ required, v20+ recommended)
- npm (included with Node)
Warning: if you run with a lower version of Node, fetch won't be present. Tools use fetch to make HTTP calls. To work around this, you can modify the tools to use node-fetch instead. Make sure that node-fetch is installed as a dependency and then import it as fetch into each tool file.
📥 Installation & Setup
1. Install dependencies
Run from your project's root directory:
npm install
🔐 Set tool environment variables
In the .env file, you'll see environment variable placeholders, one for each workspace that the selected tools are from. For example, if you selected requests from 2 workspaces, e.g. Acme and Widgets, you'll see two placeholders:
ACME_API_KEY=
WIDGETS_API_KEY=
Update the values with actual API keys for each API. These environment variables are used inside of the generated tools to set the API key for each request. You can inspect a file in the tools directory to see how it works.
// environment variables are used inside of each tool file
const apiKey = process.env.ACME_API_KEY;
Caveat: This may not be correct for every API. The generation logic is relatively simple - for each workspace, we create an environment variable with the same name as the workspace slug, and then use that environment variable in each tool file that belongs to that workspace. If this isn't the right behavior for your chosen API, no problem! You can manually update anything in the .env file or tool files to accurately reflect the API's method of authentication.
🌐 Web Interface
The server includes a comprehensive web-based interface that provides:
- Interactive Tool Execution: Select and execute Facebook Marketing API tools with a professional interface
- Real-time Connection Status: Monitor your connection to the MCP server
- Multiple Connection Types: Choose between SSE (Server-Sent Events) and HTTP streaming
- Live Results Display: View tool execution results in real-time
- Activity Logging: Track all server activities and tool executions
- Export Functionality: Export results for further analysis
- Session Management: Handle multiple concurrent connections
- Professional UI: Clean, responsive design with Facebook branding
Starting the Web Interface
# Start the web server (recommended)
npm start
# Or for development with auto-reload
npm run dev
Then open your browser to http://localhost:3001 to access the modern web interface.
Web Interface Features
- Tool Browser: Browse all available Facebook Marketing API tools
- Parameter Forms: Dynamic forms for tool parameters with validation
- Real-time Execution: Execute tools and see results instantly
- Connection Management: Switch between SSE and HTTP modes
- Export Results: Download execution results as JSON
- Activity Logs: Monitor all server activities and errors
Available Server Modes
# Web interface with SSE and HTTP support (default)
npm start
# SSE-only server mode
npm run server:sse
# Traditional STDIO mode (for Claude Desktop)
npm run server:stdio
🔧 API Endpoints
The enhanced server exposes several REST endpoints:
GET /- Web interfaceGET /api/tools- List all available toolsPOST /api/call-tool- Execute a tool via HTTPGET /sse- Server-Sent Events endpoint for real-time communicationPOST /messages- SSE message handlerGET /health- Health check endpoint
🎯 Facebook Marketing API Tools
This server includes 58 pre-configured tools for the Facebook Marketing API, organized into categories:
Available Tool Categories:
- Campaign Management: Create, update, and retrieve campaign details
- Ad Set Operations: Manage ad sets with targeting and budgets
- Creative Management: Handle ad creatives and assets
- Insights & Analytics: Get performance data and reports
- Account Management: Manage ad accounts and permissions
- Targeting: Access targeting categories and audience data
Example Tools:
get_campaign_insights- Retrieve campaign performance datacreate_campaign- Create new advertising campaignsget_ad_account_details- Get detailed account informationupdate_ad_set- Modify ad set configurationsget_targeting_categories- Access available targeting options
🌐 Test the MCP Server with Postman
The MCP Server (mcpServer.js) exposes your automated API tools to MCP-compatible clients, such as Claude Desktop or the Postman Desktop Application. We recommend that you test the server with Postman first and then move on to using it with an LLM.
The Postman Desktop Application is the easiest way to run and test MCP servers. Testing the downloaded server first is optional but recommended.
Step 1: Download the latest Postman Desktop Application from https://www.postman.com/downloads/.
Step 2: Read out the documentation article here and see how to create an MCP request inside the Postman app.
Step 3: Set the type of the MCP request to STDIO and set the command to node </absolute/path/to/mcpServer.js>. If you have issues with using only node (e.g. an old version is used), supply an absolute path instead to a node version 18+. You can get the full path to node by running:
which node
To check the node version, run:
node --version
To get the absolute path to mcpServer.js, run:
realpath mcpServer.js
Use the node command followed by the full path to mcpServer.js as the command for your new Postman MCP Request. Then click the Connect button. You should see a list of tools that you selected before generating the server. You can test that each tool works here before connecting the MCP server to an LLM.
👩💻 Connect the MCP Server to Claude
You can connect your MCP server to any MCP client. Here we provide instructions for connecting it to Claude Desktop.
Step 1: Note the full path to node and the mcpServer.js from the previous step.
Step 2. Open Claude Desktop → Settings → Developers → Edit Config and add a new MCP server:
{
"mcpServers": {
"<server_name>": {
"command": "<absolute/path/to/node>",
"args": ["<absolute/path/to/mcpServer.js>"]
}
}
}
Restart Claude Desktop to activate this change. Make sure the new MCP is turned on and has a green circle next to it. If so, you're ready to begin a chat session that can use the tools you've connected.
Warning: If you don't supply an absolute path to a node version that is v18+, Claude (and other MCP clients) may fall back to another node version on the system of a previous version. In this case, the fetch API won't be present and tool calls will not work. If that happens, you can a) install a newer version of node and point to it in the command, or b) import node-fetch into each tool as fetch, making sure to also add the node-fetch dependency to your package.json.
Additional Options
🐳 Docker Deployment (Production)
For production deployments, you can use Docker:
1. Build Docker image
docker build -t <your_server_name> .
2. Claude Desktop Integration
Add Docker server configuration to Claude Desktop (Settings → Developers → Edit Config):
{
"mcpServers": {
"<your_server_name>": {
"command": "docker",
"args": ["run", "-i", "--rm", "--env-file=.env", "<your_server_name>"]
}
}
}
Add your environment variables (API keys, etc.) inside the
.envfile.
The project comes bundled with the following minimal Docker setup:
FROM node:22.12-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
ENTRYPOINT ["node", "mcpServer.js"]
🌐 Server-Sent Events (SSE)
To run the server with Server-Sent Events (SSE) support, use the --sse flag:
node mcpServer.js --sse
Or use the web interface which includes both SSE and HTTP streaming support:
npm start
🛠️ Additional CLI commands
List tools
List descriptions and parameters from all generated tools with:
node index.js tools
Example:
Available Tools:
Workspace: acme-workspace
Collection: useful-api
list_all_customers
Description: Retrieve a list of useful things.
Parameters:
- magic: The required magic power
- limit: Number of results returned
[...additional parameters...]
🔧 API Endpoints
When running in web mode, the server exposes several endpoints:
GET /- Web interfaceGET /api/tools- List available toolsPOST /api/call-tool- Execute a tool via HTTPGET /sse- Server-Sent Events endpointPOST /messages- SSE message handlerGET /health- Health check endpoint
🎯 Features
Web Interface Features
- Modern UI: Clean, responsive design with Facebook branding
- Real-time Updates: Live connection status and activity logging
- Tool Management: Browse and execute tools with parameter validation
- Result Export: Export execution results as JSON
- Multiple Protocols: Support for both SSE and HTTP streaming
- Error Handling: Comprehensive error reporting and user feedback
Server Features
- Multi-mode Operation: STDIO, SSE, and HTTP support
- Session Management: Handle multiple concurrent connections
- Tool Discovery: Automatic detection of available tools
- Health Monitoring: Built-in health check endpoints
- CORS Support: Cross-origin resource sharing for web clients
➕ Adding New Tools
Extend your MCP server with more tools easily:
- Visit Postman MCP Generator.
- Pick new API request(s), generate a new MCP server, and download it.
- Copy new generated tool(s) into your existing project's
tools/folder. - Update your
tools/paths.jsfile to include new tool references.
💬 Questions & Support
Visit the Postman MCP Generator page for updates and new capabilities.
Join the #mcp-lab channel in the Postman Discord to share what you've built and get help.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。