Simplified MCP Server
A Model Context Protocol server that enables LLMs like Claude and Cursor to manage social media accounts and create posts across multiple platforms (including Facebook, Instagram, Twitter, LinkedIn, TikTok) through Simplified's API.
README
Simplified MCP Server
A Model Context Protocol (MCP) server that provides seamless integration between Claude, Cursor, Kiro ( and other MCP supported platforms) and Simplified's API. This server enables LLMs to interact with Simplified's services through standardized MCP tools, allowing for social media account management and post creation across multiple platforms.
Features
- Full MCP Protocol Support: Built using the official @modelcontextprotocol/sdk
- Social Media Management: Comprehensive social media account and post management
- Multi-Platform Support: Support for Facebook, Instagram, Twitter, LinkedIn, TikTok, YouTube, Pinterest, Threads, Google Business Profile, and Bluesky
- Type-Safe Implementation: Written in TypeScript with full type safety
- Robust Error Handling: Comprehensive error handling with detailed error messages
- Configurable Logging: Adjustable logging levels for debugging and monitoring
- Platform-Specific Features: Advanced platform-specific settings for Google Business Profile, TikTok, YouTube, Instagram, and more
- Scheduling Support: Create scheduled posts with platform-specific settings
- Authentication Management: Secure API token handling with automatic retry logic
Installation
Prerequisites
- Node.js 18.0.0 or higher
- npm 8.0.0 or higher
- A Simplified API token
Install from NPM
npm install -g simplified-mcp-server
Install from Source
git clone https://github.com/celeryhq/simplified-mcp-server.git
cd simplified-mcp-server
npm install
npm run build
pack DXT file
npm install -g @anthropic-ai/dxt
npx @anthropic-ai/dxt pack
Configuration
The server is configured using environment variables. Create a .env file in your project root or set these variables in your environment:
Required Configuration
| Variable | Description | Example |
|---|---|---|
SIMPLIFIED_API_TOKEN |
Your Simplified API token | sk_live_abc123... |
Optional Configuration
| Variable | Description | Default | Options |
|---|---|---|---|
SIMPLIFIED_API_BASE_URL |
Simplified API base URL | https://api.simplified.com |
Any valid URL |
LOG_LEVEL |
Logging verbosity level | info |
debug, info, warn, error |
REQUEST_TIMEOUT |
API request timeout (ms) | 30000 |
Any positive number |
RETRY_ATTEMPTS |
Number of retry attempts | 3 |
Any non-negative number |
RETRY_DELAY |
Delay between retries (ms) | 1000 |
Any positive number |
Example Configuration
# Required
SIMPLIFIED_API_TOKEN=sk_live_your_token_here
SIMPLIFIED_API_BASE_URL=https://api.simplified.com
LOG_LEVEL=info
# Optional
REQUEST_TIMEOUT=30000
RETRY_ATTEMPTS=3
RETRY_DELAY=1000
Usage
Programmatic Usage
import { SimplifiedMCPServer } from 'simplified-mcp-server';
import { ConfigurationManager } from 'simplified-mcp-server/config';
async function startServer() {
const config = ConfigurationManager.loadConfig();
const server = new SimplifiedMCPServer(config);
await server.start();
}
startServer().catch(console.error);
Integration with Claude
Add the server to your Claude MCP configuration:
{
"mcpServers": {
"simplified": {
"command": "node",
"args": [
"{PATH_TO_CLONED_REPOSITORY}/dist/cli.js",
"start"
],
"env": {
"SIMPLIFIED_API_TOKEN": "your_token_here",
"SIMPLIFIED_API_BASE_URL": "https://api.simplified.com",
"LOG_LEVEL": "info"
}
}
}
}
Install DXT extension:
Extensions -> Advanced settings -> Install Extension...
Choose simplified-mcp.dxt file. Add your token.
Integration with Kiro
Add the server to your Kiro MCP configuration:
{
"mcpServers": {
"simplified": {
"command": "simplified-mcp-server",
"env": {
"SIMPLIFIED_API_TOKEN": "your_token_here"
}
}
}
}
Available Tools
The server provides comprehensive social media management tools with platform-specific features:
Social Media Tools
Tools for managing social media accounts and posts.
get_social_media_accounts
Retrieve all connected social media accounts.
Parameters:
network(optional): Filter by platform (facebook, instagram, linkedin, tiktok, youtube, pinterest, threads, google, bluesky, tiktokBusiness)
Example:
{
"name": "get_social_media_accounts",
"arguments": {
"network": "instagram"
}
}
create_social_media_post
Create a new social media post with platform-specific settings for Google, TikTok, Threads, YouTube, Facebook, LinkedIn, Instagram, and Pinterest.
Parameters:
message(required): Post message/content (1-5000 characters)accountId(required): Social media account IDaction(required): Action to perform (schedule, add_to_queue, draft)date(optional): Scheduled date for the post (format: YYYY-MM-DD HH:MM)media(optional): Array of media file URLs to attach (max 10 items)additional(optional): Platform-specific post settings and metadata
Basic Example:
{
"name": "create_social_media_post",
"arguments": {
"message": "Excited to announce our new product launch! 🚀",
"accountId": "acc_fb123",
"action": "schedule",
"date": "2024-01-22 12:00",
"media": [
"https://example.com/product-image.jpg",
"https://example.com/launch-video.mp4"
],
"additional": {}
}
}
Media Files
The media parameter accepts an array of URL strings pointing to your media files:
{
"media": [
"https://example.com/image1.jpg",
"https://example.com/video.mp4",
"https://example.com/image2.png"
]
}
Media Requirements:
- Maximum 10 media files per post
- URLs must be publicly accessible
- Supported formats vary by platform (images: JPG, PNG, GIF; videos: MP4, MOV, etc.)
Platform-Specific Features
The additional parameter supports platform-specific configurations:
Google Business Profile
{
"additional": {
"google": {
"post": {
"title": "New Product Launch",
"topicType": "OFFER",
"couponCode": "LAUNCH20",
"callToActionUrl": "https://example.com/product",
"callToActionType": "SHOP",
"termsConditions": "Valid until end of month"
}
}
}
}
TikTok / TikTok Business
{
"additional": {
"tiktok": {
"post": {
"brandContent": true,
"privacyStatus": "PUBLIC_TO_EVERYONE",
"duetDisabled": false,
"commentDisabled": false
},
"channel": { "value": "direct" },
"postType": { "value": "video" }
}
}
}
YouTube
{
"additional": {
"youtube": {
"post": {
"title": "Product Launch Video",
"license": "standard",
"privacyStatus": "public",
"selfDeclaredMadeForKids": "no"
},
"postType": { "value": "short" }
}
}
}
{
"additional": {
"instagram": {
"postReel": {
"audioName": "Trending Audio Track",
"shareToFeed": true
},
"postType": { "value": "reel" }
}
}
}
{
"additional": {
"pinterest": {
"post": {
"link": "https://example.com/product",
"title": "Amazing Product",
"imageAlt": "Product showcase image"
}
}
}
}
{
"additional": {
"linkedin": {
"audience": { "value": "PUBLIC" }
}
}
}
{
"additional": {
"facebook": {
"postType": { "value": "feed" }
}
}
}
Threads
{
"additional": {
"threads": {
"channel": { "value": "direct" }
}
}
}
Platform-Specific Options Reference
| Platform | Available Options | Description |
|---|---|---|
| Google Business Profile | title, topicType, couponCode, callToActionUrl, callToActionType, termsConditions |
Business post enhancements with CTAs and offers |
| TikTok/TikTok Business | brandContent, privacyStatus, duetDisabled, stitchDisabled, commentDisabled |
Content settings and engagement controls |
| YouTube | title, license, privacyStatus, selfDeclaredMadeForKids |
Video metadata and compliance settings |
audioName, shareToFeed, postType |
Reel-specific settings and feed sharing | |
link, title, imageAlt |
Pin destination and accessibility | |
audience |
Professional audience targeting | |
postType |
Content type specification | |
| Threads | channel |
Publishing method |
Error Handling
The server provides comprehensive error handling with detailed error messages:
Error Types
- Configuration Errors: Missing or invalid configuration
- Authentication Errors: Invalid or expired API tokens
- API Errors: Errors from Simplified's API
- Tool Execution Errors: Errors during tool execution
- Validation Errors: Invalid tool parameters
Error Response Format
{
"success": false,
"error": "Error message",
"details": {
"type": "AUTHENTICATION_ERROR",
"code": 401,
"timestamp": "2024-01-01T00:00:00.000Z"
}
}
Development
Building from Source
git clone https://github.com/celeryhq/simplified-mcp-server.git
cd simplified-mcp-server
npm install
npm run build
Running Tests
# Run all tests
npm test
# Run tests with coverage
npm run test:coverage
# Run tests in watch mode
npm run test:watch
Development Mode
# Start in development mode with auto-reload
npm run dev
# Start in development mode with watch
npm run dev:watch
Project Structure
simplified-mcp-server/
├── src/
│ ├── index.ts # Main entry point
│ ├── server.ts # MCP server implementation
│ ├── cli.ts # Command line interface
│ ├── config/
│ │ └── configuration.ts # Configuration management
│ ├── tools/
│ │ ├── registry.ts # Tool registry
│ │ ├── definitions.ts # Tool definition utilities
│ │ └── implementations/ # Tool implementations
│ │ ├── social-media-tools.ts # Social media management tools
│ │ └── index.ts # Tool exports
│ ├── api/
│ │ └── client.ts # Simplified API client
│ ├── utils/
│ │ ├── errors.ts # Error handling utilities
│ │ └── logger.ts # Logging utilities
│ └── types/
│ └── index.ts # TypeScript type definitions
├── tests/ # Test files
├── dist/ # Compiled JavaScript
└── docs/ # Documentation
Troubleshooting
Common Issues
Server Won't Start
Problem: Server fails to start with configuration error.
Solution:
- Verify your
.envfile containsSIMPLIFIED_API_TOKEN - Check that your API token is valid
- Ensure Node.js version is 18.0.0 or higher
# Check Node.js version
node --version
# Verify environment variables
echo $SIMPLIFIED_API_TOKEN
Authentication Errors
Problem: API calls fail with authentication errors.
Solution:
- Verify your API token is correct and not expired
- Check that the token has the necessary permissions
- Ensure the API base URL is correct
Tool Execution Failures
Problem: Tools return errors or unexpected results.
Solution:
- Check the tool parameters match the expected schema
- Verify the API endpoint exists and is accessible
- Check server logs for detailed error information
# Enable debug logging
LOG_LEVEL=debug simplified-mcp-server
Connection Issues
Problem: Cannot connect to Simplified API.
Solution:
- Check your internet connection
- Verify the API base URL is accessible
- Check if there are any firewall restrictions
- Use the health check tool to diagnose connectivity
Debug Mode
Enable debug logging for detailed troubleshooting:
LOG_LEVEL=debug simplified-mcp-server
Health Check
Use the built-in health check tool to verify server status:
{
"name": "simplified-health-check",
"arguments": {
"includeDetails": true
}
}
Getting Help
- Check the logs: Enable debug logging to see detailed error information
- Verify configuration: Ensure all required environment variables are set
- Test connectivity: Use the health check and API status tools
- Check API documentation: Verify endpoint paths and parameters
- Report issues: Create an issue on the GitHub repository with logs and configuration details
API Reference
Server Configuration
The server accepts the following configuration options:
interface ServerConfig {
apiToken: string; // Required: Simplified API token
apiBaseUrl: string; // Optional: API base URL
logLevel: 'debug' | 'info' | 'warn' | 'error'; // Optional: Log level
timeout: number; // Optional: Request timeout in ms
retryAttempts: number; // Optional: Number of retry attempts
retryDelay: number; // Optional: Delay between retries in ms
}
Tool Response Format
All tools return responses in the following format:
interface ToolResponse {
content: Array<{
type: 'text';
text: string; // JSON string containing the actual response data
}>;
}
Success Response
{
"success": true,
"data": { /* response data */ },
"message": "Operation completed successfully"
}
Error Response
{
"success": false,
"error": "Error description",
"details": { /* additional error information */ }
}
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/simplified-mcp-server.git - Install dependencies:
npm install - Create a feature branch:
git checkout -b feature/your-feature - Make your changes and add tests
- Run tests:
npm test - Build the project:
npm run build - Commit your changes:
git commit -m "Add your feature" - Push to your fork:
git push origin feature/your-feature - Create a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- API Documentation: API Docs
- Documentation: GitHub Wiki
- Issues: GitHub Issues
- Discussions: GitHub Discussions
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。