Software Alternatives, Accelerators & Startups

Your first MCP Server (quick)

Ollama VS Code
  1. Get the weather information in ASCII art
    Pricing:
    • Open Source
    # FastMCP is all what we need from mcp dependency From mcp.server.fastmcp import FastMCP # We will use this lib to request the weather from wttr.in Import urllib # Now lets create an MCP Server Mcp = FastMCP("Weather") # Now let's register a tool with this decorator, @mcp.tool() Def get_weather(city: str) -> str: # define a function with city argument # And now we will docuement this cuntion using Python Docstrings # FastMCP will add this documentation to the LLM so it can decide when to use # this tool and how to use it. """ Get the current weather for a given city Args: city (str): The name of the city Returns: str: The current weather in the city, for example, "Sunny +20ยฐC" """ try: # URL-encode the city name. url_encoded_city = urllib.parse.quote_plus(city) # Prepare wittr url request wttr_url = f'https://wttr.in/{url_encoded_city}?format=%C+%t' # Request weather response = urllib.request.urlopen(wttr_url).read() return response.decode('utf-8') except Exception as e: # If something goes wrong we let the LLM know about it return f"Error fetching weather data" # And here we add the main entry point for the server If __name__ == "__main__": # Here we initialize and run the server # We select stdio transport for process-based communication. # This allow a process (the client) to communicate with its parent # process through pipes using standard input/output. mcp.run(transport='stdio').

    #Weather Apps #Web App #Tech 66 social mentions

  2. 2
    The easiest way to run large language models locally
    Pricing:
    • Open Source
    Ollama for providing an awesome local platform to run LLMs easily.

    #AI #Developer Tools #LLM 172 social mentions

  3. Build and debug modern web and cloud applications, by Microsoft
    Pricing:
    • Open Source
    Explore different MCP Clients too! You can continue using ollmcp as we did earlier, or try other clients like Claude Desktop, Visual Studio Code, and more to see how different environments interact with your server.

    #Text Editors #IDE #Software Development 1176 social mentions

  4. Desktop AI partner.
    Explore different MCP Clients too! You can continue using ollmcp as we did earlier, or try other clients like Claude Desktop, Visual Studio Code, and more to see how different environments interact with your server.

    #AI #Developer Tools #Productivity 25 social mentions

Discuss: Your first MCP Server (quick)

Log in or Post with