This guide provides comprehensive examples of how to use the OpenAPI Directory MCP Server in real-world scenarios.
Command:
"List all API providers in the directory"
Expected Response:
{
"data": [
"1forge.com",
"adyen.com",
"amazonaws.com",
"apple.com",
"github.com",
"googleapis.com",
"microsoft.com",
"stripe.com",
"twilio.com"
]
}Command:
"Show me the current API directory statistics"
Expected Response:
{
"numAPIs": 2501,
"numEndpoints": 106448,
"numSpecs": 3329,
"numProviders": 659,
"thisWeek": {
"added": 45,
"updated": 171
}
}Command:
"What APIs does Google offer?"
Example Response:
{
"googleapis.com:admin": {
"added": "2015-12-12T00:25:13.000Z",
"preferred": "directory_v1",
"versions": {
"directory_v1": {
"info": {
"title": "Admin SDK",
"version": "directory_v1",
"description": "Manage users and groups in your domain."
}
}
}
},
"googleapis.com:drive": {
"added": "2015-02-22T20:00:45.000Z",
"preferred": "v3",
"versions": {
"v2": { /* ... */ },
"v3": { /* ... */ }
}
}
}Command:
"What services does Stripe provide?"
Example Response:
{
"data": [
"payments",
"billing",
"connect",
"issuing",
"terminal"
]
}Command:
"Get the OpenAPI specification for Stripe's payments API"
Parameters Used:
- Provider:
stripe.com - Service:
payments - API:
v1
Example Response:
{
"added": "2020-01-15T10:30:00.000Z",
"updated": "2024-01-15T14:20:00.000Z",
"swaggerUrl": "https://api.apis.guru/v2/specs/stripe.com/payments/v1/swagger.json",
"swaggerYamlUrl": "https://api.apis.guru/v2/specs/stripe.com/payments/v1/swagger.yaml",
"info": {
"title": "Stripe API",
"version": "v1",
"description": "The Stripe REST API",
"contact": {
"email": "[email protected]",
"name": "Stripe Dev Platform Team",
"url": "https://stripe.com/support"
}
},
"openapiVer": "3.0.0"
}Command:
"Get the OpenAPI spec for the JSONPlaceholder API"
Parameters Used:
- Provider:
jsonplaceholder.typicode.com - API:
1.0.0
Command:
"Find all APIs related to payment processing"
Approach:
- List all APIs:
list_all_apis - Filter by keywords in titles/descriptions
- Return relevant results
Example Results:
- Stripe API
- PayPal API
- Adyen API
- Square API
- Klarna API
Command:
"Show me APIs for machine learning and AI"
Example Providers:
- Google Cloud AI Platform
- Azure Cognitive Services
- Amazon SageMaker
- IBM Watson
- OpenAI API
Command:
"What APIs are available for sending emails?"
Example Results:
- SendGrid API
- Mailgun API
- Amazon SES
- Twilio SendGrid
- Mandrill API
Scenario: Planning integration with a CRM system
Commands:
1. "List all CRM-related APIs"
2. "Get the Salesforce API specification"
3. "What's the latest version of the HubSpot API?"
4. "Show me the documentation for Microsoft Dynamics API"
Scenario: Comparing video streaming APIs
Commands:
1. "Get the YouTube API specification"
2. "Get the Vimeo API specification"
3. "What video APIs are available from Amazon?"
4. "Show me the Twitch API documentation"
Scenario: Upgrading from an older API version
Commands:
1. "Show me all versions of the Twitter API"
2. "What's the preferred version of the Instagram API?"
3. "Get the changelog for GitHub API versions"
4. "Compare v1 and v2 of the Slack API"
Command:
"I'm building a mobile app that needs social media integration. What APIs are available?"
Expected APIs:
- Facebook Graph API
- Twitter API
- Instagram API
- LinkedIn API
- TikTok API
- Pinterest API
Command:
"Find APIs for location services and mapping"
Expected APIs:
- Google Maps API
- Mapbox API
- OpenStreetMap API
- HERE API
- Apple MapKit
Command:
"I need APIs for building an e-commerce platform"
Expected Categories:
- Payment Processing (Stripe, PayPal)
- Shipping (UPS, FedEx, DHL)
- Inventory Management
- Product Catalogs
- Customer Reviews
Command:
"What authentication APIs are available?"
Expected APIs:
- Auth0 API
- Firebase Auth
- Okta API
- AWS Cognito
- Azure AD
Command:
"Find APIs for financial data and trading"
Expected APIs:
- Alpha Vantage
- Yahoo Finance
- Quandl
- IEX Cloud
- Bloomberg API
Command:
"What weather APIs are available?"
Expected APIs:
- OpenWeatherMap
- WeatherAPI
- AccuWeather
- Dark Sky API
- NOAA API
Command:
"Show me gaming-related APIs"
Expected APIs:
- Steam API
- Twitch API
- Discord API
- Xbox Live API
- PlayStation API
Command:
"Find APIs for media streaming and content"
Expected APIs:
- Spotify API
- Netflix API
- YouTube API
- Soundcloud API
- Pandora API
Command:
"Get APIs from nonexistent.com"
Expected Response:
{
"error": "Provider not found",
"message": "The provider 'nonexistent.com' does not exist in the directory"
}Command:
"Get the v99 version of the GitHub API"
Expected Response:
{
"error": "API version not found",
"message": "Version 'v99' not found for github.com API"
}- Use specific provider names for faster results
- Cache frequently accessed specifications locally
- Batch related requests when possible
- Use preferred versions unless specific version needed
- Always check API status before integration
- Review API documentation links provided
- Validate OpenAPI specs before use
- Monitor API updates regularly
Command:
"I'm new to APIs. Show me some beginner-friendly APIs to practice with"
Recommended APIs:
- JSONPlaceholder (fake REST API)
- httpbin.org (HTTP testing)
- Dog CEO API (simple image API)
- Chuck Norris API (joke API)
Command:
"Show me examples of GraphQL APIs"
Command:
"Find APIs that use OAuth 2.0 authentication"
This comprehensive set of examples should help you understand how to effectively use the OpenAPI Directory MCP Server in various scenarios and workflows.