MCP Server by XWiki - Give your AI your wiki's knowledge while keeping the control

by•
XWiki MCP Server is an open-source, self-hostable extension that connects XWiki to the AI agent of your choice: OpenCode, Pi, Codex, Claude Code, GitHub Copilot, and more. You can already use the extension to query your knowledge base to get answers, create and edit pages, and work with structured data directly in XWiki. Try out the extension and let us what's should we improve next!

Add a comment

Replies

Best

We were using Confluence org-wide and it was not coping up for agentic workflows. I think this one would be more optimized for AI.

— More needed on the AI side.

 We are working to develop more on the AI side, while also taking care of keeping the control in the hands of the documentation owner (organization) rather than handling control to the vendor.
Confluence announce this year that they'll train AI on user documentation. It's something we completely do not agree with.
That's why the XWiki MCP server keeps control in hands of users, with freedom to host as needed. It is disabled by default and you can enable anything you'd need and decide.

 Understood. Ultimately, enterprises need to build context layer on top of org-wide knowledge-base, to transit from human-focused to agent-focused systems.

 I'd say that the focus would be to remain human-focused but improve discoverability and efficiency with the help of agents. We're building XWiki in the open-source ecosystem since 2004 and we're always focused on keeping control in the hands of user.

 Another benefit of XWiki is that it's fully open source, as is the MCP server. If something is missing from the MCP, it's probably already doable with the REST API (and agents are quite good at using it). If something is missing from the API, well, the project is open-source, so you can relatively easily hack together an extension to fix your issue, or contribute the changes upstream. We also have a repo of skills and knowledge for agents to use (xwiki/xwiki-dev-llm on GitHub).

Helloo Product Hunt! 👋👋
I'm Gabriel, Product Manager @ XWiki.

XWiki has been around for over 20 years. That's plenty of time for organizations to build up A LOT of knowledge in their wikis. Documentation, internal procedures, custom applications full of structured data... you name it. In XWiki you can have all that, and more.

As AI agents become ingrained in daily workflows, we started thinking of ways to make all that internal knowledge available to them.
That's what we're sharing today: the XWiki MCP Server!

It's a free, open-source extension that connects XWiki to AI agents like Claude Code, Codex, OpenCode, Pi, MS Copilot, and anything else that speaks MCP.

When you connect your agent to your wiki, you may expect it to be able to find out about that old project decision, update some pages or even attached documents, maybe build a small internal app. And your expectations would be fulfilled, because your agent can now do all of that, and more. Since XWiki supports structured data, agents can also work with objects and classes, not just read and write pages. That's what makes XWiki and AI such a good combo!! (especially if you're a dev)

When we started thinking about adding an MCP server to XWiki, making it optional and self-hostable was our default choice. We believe it's your right to choose whether you want to use these tools, and if you do, in what capacity. You decide if and when to install it, which model to connect through it, and where everything runs. You can self-host everything (XWiki, MCP, AI model), if that's what you need. Write operations are disabled by default, so you don't make any accidental oopsies, and the agent navigates the wiki with the same permissions as your user account. 

We're still actively developing the extension. We'd love to get more people experimenting with it, maybe even on use cases we haven't even thought of yet.

If you want to give it a spin:
🔧
💻
🗣️


I'm curious: Now that you can give your AI agent access to your team's wiki, what are you going to have it do first?

If you try the extension, I'd also love to hear what works, what's confusing, and what's missing. Feedback, bug reports, wild ideas... all welcome.

I'll be in the comments. Thanks for checking out our product!! 😋
Thanks so much for hunting us, ! 🙌

 Thank you for hunting the MCP Server!

 Let's goo! We have been working on this for some time now, and I know how much passion you put into it.

Thank you,  !! I'm also super duper excited about the launch :))

   are you using standard oauth to mirror the user account permissions for agents like claude code? keeping write operations disabled by default is a smart move btw.

     Yes. The MCP endpoint is an OAuth protected resource: it advertises the XWiki OIDC Provider through the standard RFC 9728 metadata and a WWW-Authenticate header on 401. Clients such as Claude Code or Claude Desktop discover it, run the normal OAuth authorization code flow against the OIDC Provider, and send a Bearer token. XWiki validates the token and the agent acts as that user, with that user's rights. You need the XWiki OIDC Provider extension installed for this.

Really happy to see this live as I know how much effort went into it and as always it's really interesting to interact with XWiki this way. Kudos to the team!

 Thanks for being here and supporting the launch!

 Thank you, Nicu!! 🫶🫶

Great job guys, I know how hard you've worked on it! Congrats on the release!

 Thanks for your support!

 Thank you Dariaaa!!! 😋

Starting with read access gives a team room to see what the agent does with its wiki. I'd want to review the proposed page edits before enabling writes.

 you can totally do that. In fact, that's the default. Destructive tools such as write, delete, and page creation are disabled by default. But they're also extremely easy to turn on by ticking a box on the config page.

I've seen the passion and dedication has when he puts his mind on something and working on this project has been a blast. Very excited to see where XWiki will go with AI agents! Many congrats and keep on rolling!

Aww! Thank you for the kind words, !!! I'm also really excited to see where XWiki will go with AI agents 👀👀👀.

Waited for a long time for XWiki to launch their MCP server, very excited for the new possibilities this offers us. Congrats to the team!

Thank you,  !! Glad to have it finally launched!!

 Thanks for all the nice visuals that complement and highlight the MCP server!

💎 Pixel perfection

 the pleasure is mine! ❤️❤️

Hey, my experience with knowledge systems is that at some point they become write-only. SO MCP might help with that if people just connected them to their agent of choice. Does XWiki have any deconflicting mechanism?

 Yes! XWiki has several deconflicting mechanisms. When collaborative editing is disabled, pages are locked when someone edits them. When collaborative editing is on, page saves are propagated to all users. If conflicts do appear, you get to choose weather to merge the changes, or keep one or the other.

XWiki also offers unlimited version history for pages, so you can revert to a previous version if necessary.

And the software also has scripting capabilities, on top of being open-source, which makes it possible for you to define and use your own decondlicting strategies.

Keeping write operations disabled by default feels like the right starting point, and the unlimited version history is reassuring. If an agent edit does go wrong, does reverting restore the whole page to the previous version, or can you roll back just that one change while keeping later edits?

 Reverting restores the whole page. As a work around to partial reverts, you can preview any version of the page, then copy-paste changes to the latest version.

So if an agent deleted an important paragraph, but otherwise did good work, you can preview the previous version of the page, copy-paste the paragraph in the newset version, then save the page. 🙌

   thanks for clarifying that!

Exciting to see this come to life! Congrats to the whole team on this great achievement!

 Thanks for the support!

12
Next