Skip to main content
Glama
rajeevchandra

SQL Query MCP Server

server.cpython-311.pyc1.06 kB
� [�h]���ddlmZmZddlmZmZmZe��Ze�d��d���Z e� d��defd���Z dS) �)�FastAPI�Request)�mcp� list_tables� run_queryz/mcp/table://listc��t��S)N)r���/app/src/server.py�list_tables_endpointr s �� �=�=�r z/mcp/sql://query�requestc��fK�|����d{V��}t|d���S)N�query)r)�jsonr)r �bodys r �run_query_endpointr s:��������� � � � � � �D� �4��=� )� )� )�)r N) �fastapirr�mcp_ext.resourcesrrr�app�getr �postrr r r �<module>rs���$�$�$�$�$�$�$�$�9�9�9�9�9�9�9�9�9�9� �g�i�i����� ����������� ���*�g�*�*�*���*�*�*r

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/rajeevchandra/mcp-ollama-postgres'

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