Skip to main content
Glama

Genkit MCP

Official
by firebase
README.md3.23 kB
# Genkit multi-server sample This sample shows how to run multiple servers using the Genkit Web server manager. ## Running the sample ```bash env GENKIT_ENV=dev uv run multi_server.py ``` ## Output ```text 2025-03-15 18:06:09 [debug ] ✅ Event loop is using uvloop (recommended️) 2025-03-15 18:06:09 [info ] Starting servers... 2025-03-15 18:06:09 [info ] Registering server name=flows ports=range(3400, 3410) 2025-03-15 18:06:09 [info ] Registering server name=hello ports=[3300] 2025-03-15 18:06:09 [info ] Registering server name=reflection ports=[3100] 2025-03-15 18:06:09 [info ] Registering server name=reflection-starlette ports=[3200] 2025-03-15 18:06:09 [info ] Checking port config=ServerConfig(name=flows, version=1.0.0, port=3400, ports=range(3400, 3410), host=localhost, log_level=info) host=localhost port=3400 2025-03-15 18:06:09 [info ] Port available config=ServerConfig(name=flows, version=1.0.0, port=3400, ports=range(3400, 3410), host=localhost, log_level=info) host=localhost port=3400 2025-03-15 18:06:09 [info ] Server started config=ServerConfig(name=flows, version=1.0.0, port=3400, ports=range(3400, 3410), host=localhost, log_level=info) 2025-03-15 18:06:09 [info ] Checking port config=ServerConfig(name=hello, version=1.0.0, port=3300, ports=[3300], host=localhost, log_level=info) host=localhost port=3300 2025-03-15 18:06:09 [info ] Port available config=ServerConfig(name=hello, version=1.0.0, port=3300, ports=[3300], host=localhost, log_level=info) host=localhost port=3300 2025-03-15 18:06:09 [info ] Server started config=ServerConfig(name=hello, version=1.0.0, port=3300, ports=[3300], host=localhost, log_level=info) 2025-03-15 18:06:09 [info ] Checking port config=ServerConfig(name=reflection, version=1.0.0, port=3100, ports=[3100], host=localhost, log_level=info) host=localhost port=3100 2025-03-15 18:06:09 [info ] Port available config=ServerConfig(name=reflection, version=1.0.0, port=3100, ports=[3100], host=localhost, log_level=info) host=localhost port=3100 2025-03-15 18:06:09 [info ] Server started config=ServerConfig(name=reflection, version=1.0.0, port=3100, ports=[3100], host=localhost, log_level=info) 2025-03-15 18:06:09 [info ] Checking port config=ServerConfig(name=reflection-starlette, version=1.0.0, port=3200, ports=[3200], host=localhost, log_level=info) host=localhost port=3200 2025-03-15 18:06:09 [info ] Port available config=ServerConfig(name=reflection-starlette, version=1.0.0, port=3200, ports=[3200], host=localhost, log_level=info) host=localhost port=3200 2025-03-15 18:06:09 [info ] Server started config=ServerConfig(name=reflection-starlette, version=1.0.0, port=3200, ports=[3200], host=localhost, log_level=info) 2025-03-15 18:06:09 [info ] Starting servers completed ``` ## Stopping the sample Lookup the process ID from [/\_\_serverz](http://localhost:3400/__serverz) ```bash # SIGTERM kill -15 ${PROCESS_ID} ```

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/firebase/genkit'

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