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:
Option 2: Download app.json File
Alternatively, download the metadata file first:
Quick Start
You can run the MCP server with either a URL or local file:
Filtering APIs
Filter by tag:
Filter specific APIs:
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):
Using a local file:
Example with filtering:
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):
Using a local file:
Example with filtering:
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:
Using a local file:
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:
Or if you've installed globally:
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:
Troubleshooting
If the MCP server doesn't appear:
Verify the path: Make sure the path to your
app.jsonfile is absolute, not relativeCheck the file exists: Ensure your
app.jsonfile exists at the specified pathRestart 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 OSClaude Code: Look for MCP-related errors in the CLI output