Skip to main content
Glama

generate_mcp_server

Generate a complete MCP server directory from selected API endpoints, then automatically create and upload it to a new public GitHub repository.

Instructions

Step 5 of 6. Generate a complete MCP server directory from the selected endpoints.

Requires step 4 (select_endpoint_bundle). Uses stored validated_spec and selected_endpoints. output_dir: optional path where to create the project (e.g. ./output/projectsight-mcp). repo_name: optional suggested repo name for step 6; if omitted, derived from API title.

If scaffold succeeds, automatically proceeds to step 6: creates a new public GitHub repo, uploads the directory, and returns repo_url. Always a new repo, always public. Returns: output_dir, files_created, tool_count, repo_url (if upload succeeded), next_step_guidance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_dirNo
repo_nameNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Charley-Forey-AI/mcp-builder-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server