ServiceStack MCP Server
Dynamically creates an MCP server from ServiceStack API metadata configuration files, exposing typed REST APIs as MCP tools with support for filtering by tags or specific operations.
README
ServiceStack MCP Server
An MCP (Model Context Protocol) Server that enables Claude to interact with ServiceStack APIs. This tool transforms your ServiceStack API metadata into an MCP server, allowing Claude to discover and invoke your APIs through natural language.
What is this?
This MCP server allows Claude to:
- Discover all available APIs from your ServiceStack application
- Understand the request/response schemas
- Invoke APIs with proper parameters
- Handle authentication when required
Getting Your ServiceStack API Metadata
ServiceStack automatically generates API metadata at the /metadata/app.json endpoint of your application. You can use this tool in two ways:
Option 1: Use URL Directly (Recommended)
Point directly to your ServiceStack API URL - the tool will automatically fetch the metadata:
# Using base URL (will automatically fetch /metadata/app.json)
npx mcp-apis https://your-api.com
# Or for local development
npx mcp-apis https://localhost:5001
# You can also specify the full metadata path
npx mcp-apis https://your-api.com/metadata/app.json
Option 2: Download app.json File
Alternatively, download the metadata file first:
# Download from your ServiceStack application
curl https://your-api.com/metadata/app.json > app.json
# Or for local development
curl https://localhost:5001/metadata/app.json > app.json
Quick Start
You can run the MCP server with either a URL or local file:
# Using a URL (recommended)
npx mcp-apis https://your-api.com
# Using a local file
npx mcp-apis ./app.json
Filtering APIs
Filter by tag:
# With URL
npx mcp-apis https://your-api.com --tag Posts
# With local file
npx mcp-apis ./app.json --tag TechStacks
Filter specific APIs:
# Single API
npx mcp-apis https://your-api.com --apis QueryPost
# Multiple APIs
npx mcp-apis ./app.json --apis QueryPosts,CreatePost,UpdatePost,DeletePost
Connecting to Claude Tools
Claude Desktop App
To use this MCP server with the Claude Desktop app, add it to your Claude Desktop configuration file:
On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
On Linux: ~/.config/Claude/claude_desktop_config.json
Add the following configuration:
Using a URL (recommended):
{
"mcpServers": {
"servicestack": {
"command": "npx",
"args": [
"mcp-apis",
"https://your-api.com"
]
}
}
}
Using a local file:
{
"mcpServers": {
"servicestack": {
"command": "npx",
"args": [
"mcp-apis",
"/absolute/path/to/your/app.json"
]
}
}
}
Example with filtering:
{
"mcpServers": {
"techstacks-api": {
"command": "npx",
"args": [
"mcp-apis",
"https://techstacks.io",
"--tag",
"Posts"
]
}
}
}
After saving the configuration, restart Claude Desktop. The MCP server will appear in the MCP menu (click the 🔌 icon at the bottom of the chat window).
Claude Code CLI
To use this MCP server with Claude Code, add it to your MCP settings file:
Location: ~/.config/claude-code/mcp_settings.json
Using a URL (recommended):
{
"mcpServers": {
"servicestack": {
"command": "npx",
"args": [
"mcp-apis",
"https://your-api.com"
]
}
}
}
Using a local file:
{
"mcpServers": {
"servicestack": {
"command": "npx",
"args": [
"mcp-apis",
"/absolute/path/to/your/app.json"
]
}
}
}
Example with filtering:
{
"mcpServers": {
"my-api": {
"command": "npx",
"args": [
"mcp-apis",
"https://my-api.com",
"--apis",
"QueryPosts,CreatePost,UpdatePost"
]
}
}
}
After saving, restart Claude Code. You can verify the MCP server is connected by checking the MCP status in the CLI.
Per-Project Configuration (Claude Code)
For project-specific MCP servers, create a .mcp_settings.json file in your project root:
Using a URL:
{
"mcpServers": {
"local-api": {
"command": "npx",
"args": [
"mcp-apis",
"https://localhost:5001"
]
}
}
}
Using a local file:
{
"mcpServers": {
"local-api": {
"command": "npx",
"args": [
"mcp-apis",
"./app.json"
]
}
}
}
Claude Code will automatically load this configuration when working in that directory.
Using with Other MCP Clients
Any MCP-compatible client can connect to this server using the stdio transport. The general pattern is:
{
"command": "npx",
"args": ["mcp-apis", "/path/to/app.json"]
}
Or if you've installed globally:
{
"command": "mcp-apis",
"args": ["/path/to/app.json"]
}
Configuration Options
All command-line options work in MCP client configurations:
-
Filter by tag:
"args": ["mcp-apis", "./app.json", "--tag", "Posts"] -
Filter specific APIs:
"args": ["mcp-apis", "./app.json", "--apis", "QueryPosts,CreatePost"] -
Combine multiple filters:
"args": ["mcp-apis", "./app.json", "--tag", "TechStacks", "--apis", "QueryPosts"]
Example Usage in Claude
Once connected, you can interact with your ServiceStack APIs naturally:
You: "Get the post with ID 123"
Claude: [Uses the GetPost API to fetch post 123]
You: "Create a new post titled 'Hello World' in organization 1"
Claude: [Uses the CreatePost API with the provided parameters]
You: "Search for posts about TypeScript"
Claude: [Uses the QueryPosts API to search for relevant posts]
Troubleshooting
If the MCP server doesn't appear:
- Verify the path: Make sure the path to your
app.jsonfile is absolute, not relative - Check the file exists: Ensure your
app.jsonfile exists at the specified path - Restart the client: After updating the configuration, restart Claude Desktop or Claude Code
- Check logs:
- Claude Desktop: Check
~/Library/Logs/Claude/(macOS) or equivalent on your OS - Claude Code: Look for MCP-related errors in the CLI output
- Claude Desktop: Check
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。