MCP cover image
Robotframeworklibrary-to-MCP logo
Public

Robotframeworklibrary-to-MCP

See in Github
2025-03-31

So verwandeln Sie eine Roboter -Framework -Bibliothek auf einen MCP -Server

1

Github Watches

0

Github Forks

0

Github Stars

RobotFrameworkLibrary-to-MCP

How to turn any robot framework library to a mcp server

Here is How

  1. Clone your robot library
  2. open the folder and go to init.py, where the Library class with hybrid core or dynamic core is initiated. (example)
    from robotlibcore import DynamicCore
    class LibraryName(DynamicCore):
      def __init__(self):
         ...
    
  3. Add the following function to the class
    def to_mcp(self):
        from mcp.server.fastmcp import FastMCP
        mcp = FastMCP(self.__class__.__name__)
        for kw in self.keywords.values():
            mcp.add_tool(kw)
        return mcp

Run the following Code in a py file in the root folder of library:

from src.LibraryName import LibraryName 
a = LibraryName().to_mcp()
a.run(transport='stdio')

You can use it in any MCP Client Here is an example with vscode insiders

  1. press ctrl shift p and type MCP:Add Server
  2. Add the following lines
{
    "mcp": {
        "servers": {
            "LibName": {
                "type": "stdio",
                "command": "uv",
                "args": [
                    "--directory",
                    "C:\\somefolder\\ABS Path to The library Root",
                    "run",
                    "test.py"] # the new py file name where you run the server
            }
        }
    }
}

Thats it

Demo

I will be documenting a demo using MailClientLibrary

from src.MailClientLibrary import MailClientLibrary 
a = MailClientLibrary(Username="user", Password="pass", MailServerAddress="127.0.0.1", ImapPorts=[993,143], Pop3Ports=[995,110], SmtpPorts=[465,25]).to_mcp()
a.run(transport='stdio')
print(a)

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • modelcontextprotocol
  • Modellkontext -Protokollserver

  • Mintplex-Labs
  • Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.

  • ravitemer
  • Ein leistungsstarkes Neovim -Plugin für die Verwaltung von MCP -Servern (Modellkontextprotokoll)

    Reviews

    2 (1)
    Avatar
    user_UEluyqWI
    2025-04-16

    RobotFrameworkLibrary-to-MCP is a game changer for those who heavily use Robot Framework and MCP. The integration provided by noubar is seamless and enhances productivity manifold. The library bridges the gap effortlessly, making automation smoother and more efficient. Highly recommend checking it out!