Skip to main content
Glama

API Docs MCP Server

main.cpython-310.pyc1.37 kB
o I�gy�@s�dZddlZddlZddlZddlmZddlmZddlm Z ddl m Z e� e �Zdd�Ze d krBejejd �e�e��dSdS) z3 Main module for the API documentation MCP server. �N)�FastMCP)� ApiDocCrawler)�register_resources)� ApiRepositoryc�s��tjdd�}|jdddd�|jdtdd d �|��}t�}t|�}t�d |j ���|� |j �Id Ht |j d �}t ||�t�d|j ���|��Id Hd S)z6Main entry point for the API documentation MCP server.zAPI documentation MCP server)Z descriptionz--urlTz%URL of the API documentation to crawl)Zrequired�helpz--porti@zPort to run the MCP server on)�type�defaultrz Crawling API documentation from N)�portzStarting MCP server on port )�argparseZArgumentParserZ add_argument�intZ parse_argsrr�logger�infoZurlZcrawlrr r�start)Zparser�argsZ repositoryZcrawlerZmcp�r�?C:\Users\apqls\Documents\Github\tkbase\api-docs-mcp\src\main.py�mains�   r�__main__)�level)�__doc__r ZasyncioZloggingZmcp.server.fastmcprZsrc.crawler.crawlerrZsrc.mcp.resourcesrZsrc.storage.repositoryrZ getLogger�__name__r rZ basicConfigZINFO�runrrrr�<module>s     �

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/ShotaNagafuchi/api-docs-mcp'

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