Frontal MCP Server
Enables management of GitHub workflows, issue templates, and repository configuration for the Frontal MCP Server project through CI/CD pipelines and security automation.
README
<picture> <source srcset="./banner-dark.png" media="(prefers-color-scheme: dark)"> <source srcset="./banner.png" media="(prefers-color-scheme: light)"> <img src="./banner-dark.png" alt="Frontal Banner"> </picture>
Frontal MCP Server
A standalone Model Context Protocol (MCP) server that provides seamless access to Frontal's cloud services (AI, Blob Storage, Functions, Graph Database, and Pipelines) through a standardized interface.
Quick Start
Installation
# Install globally
npm install -g @frontal/mcp-server
# Or install locally
npm install @frontal/mcp-server
Basic Setup
-
Get your API key from Frontal Dashboard
-
Set up environment:
export FRONTAL_API_KEY="your_api_key_here"
- Start the server:
# For Claude Desktop (stdio transport)
frontal-mcp-server --transport stdio
# For web applications (HTTP transport)
frontal-mcp-server --transport http --port 3000
Claude Desktop Integration
Add to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"frontal": {
"command": "frontal-mcp-server",
"args": ["--transport", "stdio"],
"env": {
"FRONTAL_API_KEY": "your_api_key_here"
}
}
}
}
Features
- AI Services: Text generation, image creation, and embeddings
- Blob Storage: File upload, download, and management
- Functions: Serverless function execution and management
- Graph Database: Graph queries and node creation
- Pipelines: Data pipeline creation and execution
- Multi-Transport: Support for both stdio and HTTP
- Type Safe: Full TypeScript support with Zod validation
- Monitoring: Built-in metrics and logging
Available Tools
The Frontal MCP Server provides access to the following services:
AI Service
- ai-generate-text: Generate text using AI models
- ai-generate-image: Generate images from text prompts
- ai-embed: Generate text embeddings
Blob Storage
- blob-upload: Upload files to blob storage
- blob-list: List objects in storage buckets
Functions
- functions-invoke: Execute serverless functions
- functions-list: List deployed functions
Graph Database
- graph-query: Execute graph queries
- graph-create-node: Create graph nodes
Pipelines
- pipelines-create: Create data pipelines
- pipelines-run: Execute pipelines
See API Documentation for detailed tool specifications.
Configuration
Environment Variables
| Variable | Description | Default | Required |
|---|---|---|---|
FRONTAL_API_KEY |
Frontal API key | - | Yes |
FRONTAL_BASE_URL |
API base URL | https://api.frontal.dev/v1 |
No |
MCP_LOG_LEVEL |
Log level | info |
No |
ENABLE_AI |
Enable AI service | true |
No |
ENABLE_BLOB |
Enable Blob service | true |
No |
ENABLE_FUNCTIONS |
Enable Functions service | true |
No |
ENABLE_GRAPH |
Enable Graph service | true |
No |
ENABLE_PIPELINES |
Enable Pipelines service | true |
No |
CLI Options
frontal-mcp-server [options]
Options:
-t, --transport <type> Transport type (stdio|http) [default: "stdio"]
-p, --port <number> HTTP port (for http transport) [default: 3000]
-h, --host <address> HTTP host (for http transport) [default: "localhost"]
-k, --api-key <key> Frontal API key
-c, --config <path> Configuration file path
-v, --verbose Verbose logging
--log-level <level> Log level (error|warn|info|debug) [default: "info"]
Usage Examples
Basic Usage
# Start with stdio transport (for Claude Desktop)
FRONTAL_API_KEY=your_key ./dist/bin/frontal-mcp-server.js
# Start with HTTP transport for web integration
FRONTAL_API_KEY=your_key ./dist/bin/frontal-mcp-server.js --transport http --port 3000
# Enable only specific services
ENABLE_AI=true ENABLE_BLOB=false ./dist/bin/frontal-mcp-server.js
Programmatic Usage
import { FrontalMcpServer, createLogger } from '@frontal/mcp-server';
const config = {
apiKey: 'your_api_key',
transport: { transport: 'stdio' },
services: {
ai: true,
blob: true,
functions: false,
graph: false,
pipelines: false,
}
};
const logger = createLogger({ level: 'info' });
const server = new FrontalMcpServer(config, logger);
await server.initialize();
await server.connectStdio();
Architecture
The MCP Server follows a modular adapter pattern:
- Core Server: Handles MCP protocol and transport management
- Service Adapters: Each Frontal service has its own adapter
- Configuration: Centralized config with environment variable support
- Transport Layer: Supports both stdio and HTTP transports
Development
Project Structure
mcp-server/
├── src/
│ ├── adapters/ # Service adapters for each Frontal service
│ ├── config/ # Configuration management
│ ├── server/ # Core MCP server implementation
│ ├── utils/ # Utilities (logging, etc.)
│ └── bin/ # CLI entry point
├── tests/ # Test files
├── docs/ # Documentation
└── examples/ # Integration examples
Scripts
# Build the project
bun run build
# Run tests
bun run test
# Run tests in watch mode
bun run test:watch
# Generate coverage report
bun run test:coverage
# Lint code
bun run lint
# Format code
bun run format
# Type check
bun run type-check
Current Status
Completed Features:
- Project structure and build system
- Core MCP server implementation
- Service adapters for all Frontal services
- Configuration management
- CLI interface with stdio transport
- Comprehensive test suite
- Complete API documentation
In Development:
- HTTP transport implementation
- Integration with real Frontal SDKs
- Advanced error handling
- Performance monitoring
Contributing
We welcome contributions! Please see our Developer Guide for detailed information.
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests:
bun run test - Submit a pull request
Documentation
- API Documentation - Complete API reference
- Usage Guide - Practical examples and integration patterns
- Developer Guide - Architecture and contribution guidelines
Troubleshooting
Common Issues
Server won't start:
# Check API key
echo $FRONTAL_API_KEY
# Validate configuration
frontal-mcp-server --validate-config
Connection issues:
# Test with different transport
frontal-mcp-server --transport http --port 3000
# Check logs
frontal-mcp-server --verbose
Performance issues:
# Enable debug logging
MCP_LOG_LEVEL=debug frontal-mcp-server
# Monitor resources
top -p $(pgrep frontal-mcp-server)
Getting Help
- GitHub Issues: Report bugs and request features
- Discord Community: Join our developer community
- Documentation: Check docs/ for detailed guides
License
MIT License - see LICENSE file for details.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。