Skip to content

Feature request: MCP Server for OpenInterpreter #1623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
qdrddr opened this issue May 5, 2025 · 2 comments
Open

Feature request: MCP Server for OpenInterpreter #1623

qdrddr opened this issue May 5, 2025 · 2 comments

Comments

@qdrddr
Copy link

qdrddr commented May 5, 2025

Is your feature request related to a problem? Please describe.

Create an MCP Server for OpenInterpreter so we can execute the code by request from other apps.

Describe the solution you'd like

Integrate OpenInterpreter into our MCP Clients such as VS Code, Cursor, etc.

Describe alternatives you've considered

No response

Additional context

No response

@qdrddr qdrddr changed the title MCP Server for OpenInterpreter Feature request: MCP Server for OpenInterpreter May 5, 2025
@cegersdoerfer
Copy link

You can already do this very easily. Here's a quick example basically replicating the server example in the README:

from mcp.server.fastmcp import FastMCP
from interpreter import interpreter

mcp = FastMCP("open_interpreter")


@mcp.tool()
async def describe_task(message: str) -> str:
    """Describe a task in natural language"""
    return interpreter.chat(message)

@mcp.tool()
async def history() -> str:
    """Get the history of the conversation"""
    return interpreter.messages

if __name__ == "__main__":
    mcp.run(transport='sse')

This would run as a remote mcp using sse but you can also switch transport to stdio if launching concurrently with the client

@endolith
Copy link

I'm confused how that would work. Can you give an example of why you want to call OpenInterpreter (which is an interactive chatbot) from other agents?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants