Skip to content

Feature request: ability to use MCP servers #696

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
davidmoshal opened this issue Jan 6, 2025 · 13 comments
Open

Feature request: ability to use MCP servers #696

davidmoshal opened this issue Jan 6, 2025 · 13 comments

Comments

@davidmoshal
Copy link

ability to use MCP Servers?

@lingster
Copy link

I think this would be a very interesting feature. There's a nifty little project called fastmcp (https://github.com/jlowin/fast mcp). Think fastapi, but allows your llm to access external functionality, eg you could create an mcp server to connect to your email, then on the command line you could ask llm to search/send email etc

Currently mcp is partially implemented in claude desktop, but doing so in llm would allow for complete integration and ability to use other open source models. Think of it as a standardised way of implementing function calling.

@davidmoshal
Copy link
Author

shouldn't be too hard, with FastMCP, no?

@luebken
Copy link

luebken commented Jan 22, 2025

Related / required: #607

@bsima
Copy link

bsima commented Jan 27, 2025

Corrected link for fastmcp https://github.com/jlowin/fastmcp

@davidgasquez
Copy link

Spotted this nice CLI that you can configure to use MCP servers!

@nbbaier
Copy link

nbbaier commented Feb 14, 2025

Spotted this nice CLI that you can configure to use MCP servers!

Interesting that this is also named llm

@Lewiscowles1986
Copy link

What, does MCP stand for?

@Lewiscowles1986
Copy link

Right
Model Context Protocol
https://github.com/modelcontextprotocol

@ChristianWeyer
Copy link

Are you considering implementing MCP @simonw ?

@notdaniel
Copy link

FastMCP is now the official MCP SDK: https://github.com/modelcontextprotocol/python-sdk

But yeah, this would be super cool. I've recently seen just how powerful and useful MCP can be and would love to play with it more, but I don't want to have to use Claude Desktop to do it. (It's not available on Linux, anyway.) Most of my AI queries these days are via llm anyway.

I wouldn't mind contributing to this integration, I'm just not familiar enough yet with the inner workings of llm and the plugin system

@lingster
Copy link

so I've actually written my own cli mcp tool using typer and python and it's open sourced here:
https://github.com/lingster/mcp-llm
only supports claude for now, but PRs or suggestions for improvements welcome!

@rahimnathwani
Copy link
Contributor

Spotted this nice CLI that you can configure to use MCP servers!

This CLI uses langchain under the hood. So it should work for any model where the langchain folks support tool calling. This support is mostly about knowing how to tell the model about the available tools, e.g.

e.g. look at this code:

https://github.com/langchain-ai/langchain/blob/3848a1371da1a5bc6a4b0fcae461afcf529dc328/libs/partners/anthropic/langchain_anthropic/chat_models.py#L87

And compare it with the first code listing on this page:
https://docs.anthropic.com/en/docs/build-with-claude/tool-use/overview

@simonw
Copy link
Owner

simonw commented Apr 8, 2025

I plan to implement MCP support as a plugin on top of tools, once that lands:

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