MCP for the JVM (...and Android!)
Compile once, run anywhere? You bet! After our mcp.run OpenAI integration and some teasing, we're excited to launch mcpx4j
, our client library for the JVM ecosystem.
Built on the new Extism Chicory SDK, mcpx4j
is a lightweight library that leverages the pure-Java Chicory Wasm runtime. Its simple design allows for seamless integration with diverse AI frameworks across the mature JVM ecosystem.
To demonstrate this flexibility, we've prepared examples using popular frameworks:
-
Spring AI brings extensive model support; our examples focus on OpenAI and Ollama modules, but the framework makes it easy to plug in a model of your choice. Get started with our complete tutorial.
-
LangChain4j offers a wide range of model integrations. We showcase implementations with OpenAI and Ollama, but you can easily adapt them to work with your preferred model. Check out our step-by-step guide to learn more.
One More Thing. mcpx4j
doesn't just cross framework boundaries - it crosses platforms too! Following our earlier Android experiments, we're now sharing our Android example with Gemini integration, along with a complete step-by-step tutorial.
We can't wait to see what you'll create with mcpx4j
. Try it out and share your feedback with us!